diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-02 18:48:40 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-02 18:48:40 +0200 |
commit | e598c5738c2dc85a3e93c3f68cd88e8eea51215b (patch) | |
tree | 82cd862d3cb5b71cc6cfa355f461e3b1d7289f75 /udev/udevd.c | |
parent | 033e9f8cde5a7feec1334888aec69def99c945b5 (diff) |
libudev: get rid of selinux
"Hello world!" linked against libselinux parses /proc/mounts and
whatever else on startup, even when the lib is not needed at all.
Not funny! Get rid of that thing where it's not absolutely needed.
Diffstat (limited to 'udev/udevd.c')
-rw-r--r-- | udev/udevd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/udev/udevd.c b/udev/udevd.c index a821ee7d8e..4000d37e80 100644 --- a/udev/udevd.c +++ b/udev/udevd.c @@ -801,6 +801,7 @@ int main(int argc, char *argv[]) logging_init("udevd"); udev_set_log_fn(udev, log_fn); dbg(udev, "version %s\n", VERSION); + selinux_init(udev); while (1) { int option; @@ -1125,6 +1126,8 @@ exit: if (uevent_netlink_sock >= 0) close(uevent_netlink_sock); + selinux_exit(udev); + udev_unref(udev); logging_close(); return rc; } |