summaryrefslogtreecommitdiff
path: root/extras/floppy
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 /extras/floppy
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 'extras/floppy')
-rw-r--r--extras/floppy/Makefile.am3
-rw-r--r--extras/floppy/create_floppy_devices.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/extras/floppy/Makefile.am b/extras/floppy/Makefile.am
index a62dd20984..337e7a325c 100644
--- a/extras/floppy/Makefile.am
+++ b/extras/floppy/Makefile.am
@@ -9,7 +9,8 @@ create_floppy_devices_SOURCES = \
../../udev/lib/libudev.h \
../../udev/lib/libudev.c \
../../udev/lib/libudev-util.c \
- ../../udev/udev_utils.c
+ ../../udev/udev_utils.c \
+ ../../udev/udev_selinux.c
if USE_SELINUX
create_floppy_devices_LDADD = \
diff --git a/extras/floppy/create_floppy_devices.c b/extras/floppy/create_floppy_devices.c
index 4cff958da3..6c5b3b4800 100644
--- a/extras/floppy/create_floppy_devices.c
+++ b/extras/floppy/create_floppy_devices.c
@@ -68,6 +68,7 @@ int main(int argc, char **argv)
logging_init("create_floppy_devices");
udev_set_log_fn(udev, log_fn);
+ selinux_init(udev);
while ((c = getopt(argc, argv, "cudm:U:G:M:t:")) != -1) {
switch (c) {
@@ -161,6 +162,7 @@ int main(int argc, char **argv)
i++;
}
+ selinux_exit(udev);
udev_unref(udev);
exit:
return 0;