Commit Graph

23 Commits

Author SHA1 Message Date
Kenton Groombridge 9f4afcc6e2 testing: accept '@' as a valid ending character in filecon checker
Signed-off-by: Kenton Groombridge <me@concord.sh>
2021-12-05 13:01:23 -05:00
Christian Goettsche 303857caca check_fc_files: allow optional @ character
Do not warn on /usr/lib/systemd/system/ssh@?\.service

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
2021-10-19 20:59:22 +02:00
Nicolas Iooss 8e612038de
testing/check_fc_files: allow @ character in file context patterns
Some systemd units use @ in their names.

Fixes: https://github.com/SELinuxProject/refpolicy/issues/131

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
2019-12-22 16:53:05 +01:00
Nicolas Iooss 249dc50218
Allow using /([^/]+/)? and (/[^/]+)?/ in patterns
These are valid expressions in the middle of a pattern in a .fc file, in
order to match an optional subdirectory level.

Some recent commits introduced "/([^/]+/)?" in the policy:
* commit b8f2c55109 ("cups: use ([^/]+/)? to match a subdirectory of
  CUPS configuration")
* commit 4b02c2230d ("authlogin: label utempter correctly on Debian")

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
2019-09-08 22:58:15 +02:00
Nicolas Iooss f9deb94ba4
Check the .fc files for common typos
Writing .fc files without any mistake is quite hard. Sometimes a regular
expression pattern compiles fine but it does not match what is intended.

Add a script that detects some issues in .fc files. When this script is
used directly ("./testing/check_fc_files.py"), it checks the content of
policy/. The path to policy/ can also be provided by option -p.

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
2019-09-01 15:05:23 +02:00
Chris PeBenito 385e624407 move non-policy dirs out of trunk 2006-07-06 17:35:17 +00:00
Ryan Haggerty 44656a182b configuration files for automount. 2005-12-08 17:10:23 +00:00
Chris PeBenito 3233e299cc add fc5t2 targeted modules.conf 2005-12-07 14:54:51 +00:00
Ryan Haggerty a0f5ff6435 updated README 2005-11-15 15:21:08 +00:00
Ryan Haggerty a8b62e799c more config files and updates. 2005-11-14 20:07:26 +00:00
Ryan Haggerty e50d1d5922 Configuration for mailman. 2005-11-10 22:12:53 +00:00
Ryan Haggerty 5211b057aa Added configurations for testing tcpd. 2005-11-09 21:36:09 +00:00
Ryan Haggerty f68326476f commented out cipher config options. 2005-11-08 15:38:45 +00:00
Ryan Haggerty 42fc9a850d Fixing configuration files. 2005-11-08 15:14:11 +00:00
Ryan Haggerty e6f94f7eed adding some config files for kerberos. 2005-11-03 15:59:51 +00:00
Ryan Haggerty b909aca790 adding configuration for spamassassin. 2005-11-02 20:36:13 +00:00
Don Miner 5777606093 Added telnet configuration instructions. 2005-10-31 18:36:31 +00:00
Ryan Haggerty 9cb7c2a869 Adding configuration for stunnel test (using stunnel to tunnel rsync traffic) 2005-10-28 18:56:36 +00:00
Ryan Haggerty b7cb7a9e32 adding configuration for rsync. 2005-10-28 15:08:14 +00:00
Ryan Haggerty 7e1e18d33a dhcp configuration added. 2005-10-27 19:58:07 +00:00
Ryan Haggerty cf14e4bd0a Configuration for bind added. 2005-10-27 19:51:35 +00:00
Ryan Haggerty 8fb15d8838 change of file names. 2005-10-27 19:15:40 +00:00
Ryan Haggerty 689417687c adding ldap configuration files and README. 2005-10-27 18:56:20 +00:00