summaryrefslogtreecommitdiff
path: root/udev/udevadm.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-10-02 18:48:40 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-10-02 18:48:40 +0200
commite598c5738c2dc85a3e93c3f68cd88e8eea51215b (patch)
tree82cd862d3cb5b71cc6cfa355f461e3b1d7289f75 /udev/udevadm.c
parent033e9f8cde5a7feec1334888aec69def99c945b5 (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/udevadm.c')
-rw-r--r--udev/udevadm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/udev/udevadm.c b/udev/udevadm.c
index 3f2c78212e..3671b9ee59 100644
--- a/udev/udevadm.c
+++ b/udev/udevadm.c
@@ -140,6 +140,7 @@ int main(int argc, char *argv[])
logging_init("udevadm");
udev_set_log_fn(udev, log_fn);
+ selinux_init(udev);
sysfs_init();
/* see if we are a compat link, this will be removed in a future release */
@@ -211,6 +212,7 @@ int main(int argc, char *argv[])
rc = 2;
out:
sysfs_cleanup();
+ selinux_exit(udev);
udev_unref(udev);
logging_close();
return rc;