From 736fa825e15c8d72eac85080e6cdf028c2f8df43 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 18 Oct 2004 04:04:12 +0000 Subject: 2004-10-18 Colin Walters * bus/selinux.h: Add bus_selinux_enabled. * bus/selinux.c (bus_selinux_enabled): Implement it. * bus/config-parser.c (struct include): Add if_selinux_enabled member. (start_busconfig_child): Parse if_selinux_enabled attribute for include. (bus_config_parser_content): Handle it. * bus/session.conf.in, bus/system.conf.in: Add inclusion of context mapping to default config files; conditional on SELinux being enabled. * doc/busconfig.dtd: Add to if_selinux_enabled to default DTD. * test/data/invalid-config-files/badselinux-1.conf, test/data/invalid-config-files/badselinux-2.conf: Test files for bad syntax. --- test/data/invalid-config-files/badselinux-1.conf | 10 ++++++++++ test/data/invalid-config-files/badselinux-2.conf | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 test/data/invalid-config-files/badselinux-1.conf create mode 100644 test/data/invalid-config-files/badselinux-2.conf (limited to 'test/data') diff --git a/test/data/invalid-config-files/badselinux-1.conf b/test/data/invalid-config-files/badselinux-1.conf new file mode 100644 index 00000000..4852ded2 --- /dev/null +++ b/test/data/invalid-config-files/badselinux-1.conf @@ -0,0 +1,10 @@ + + + mybususer + unix:path=/foo/bar + tcp:port=1234 + basic.d + /usr/share/foo + blah + diff --git a/test/data/invalid-config-files/badselinux-2.conf b/test/data/invalid-config-files/badselinux-2.conf new file mode 100644 index 00000000..ac3b95c4 --- /dev/null +++ b/test/data/invalid-config-files/badselinux-2.conf @@ -0,0 +1,10 @@ + + + mybususer + unix:path=/foo/bar + tcp:port=1234 + basic.d + /usr/share/foo + blah + -- cgit v1.2.3