summaryrefslogtreecommitdiff
path: root/src/test/test-udev.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2012-04-17 16:05:03 +0200
committerKay Sievers <kay@vrfy.org>2012-04-17 16:05:28 +0200
commite9a5ef7cddcfcdb29b5aef3896931132b6fd5165 (patch)
treeed40d27a53fcbee52aedad4531860aec6edb5c55 /src/test/test-udev.c
parent75e37ac5b125713c5ab6e1c4a9d62cfb62948c27 (diff)
selinux: unify systemd and udev code
Diffstat (limited to 'src/test/test-udev.c')
-rw-r--r--src/test/test-udev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-udev.c b/src/test/test-udev.c
index a39ba72114..64bb5cbc3b 100644
--- a/src/test/test-udev.c
+++ b/src/test/test-udev.c
@@ -50,7 +50,7 @@ int main(int argc, char *argv[])
if (udev == NULL)
exit(EXIT_FAILURE);
log_debug("version %s\n", VERSION);
- udev_selinux_init(udev);
+ label_init("/dev");
sigprocmask(SIG_SETMASK, NULL, &sigmask_orig);
@@ -113,7 +113,7 @@ out:
udev_event_unref(event);
udev_device_unref(dev);
udev_rules_unref(rules);
- udev_selinux_exit(udev);
+ label_finish();
udev_unref(udev);
if (err != 0)
return EXIT_FAILURE;