diff options
author | Nicolas Iooss <nicolas.iooss@m4x.org> | 2017-02-27 22:24:02 +0100 |
---|---|---|
committer | Sven Vermeulen <swift@gentoo.org> | 2017-03-02 11:16:52 +0100 |
commit | ee9f1937dfcafbac9c687ee2f79d33bd7b54bec2 (patch) | |
tree | a9b9b1e414b4a6d3b4bbca23a22971f17fe197f7 | |
parent | Make "validate" target verify file contexts (diff) | |
download | hardened-refpolicy-ee9f1937dfcafbac9c687ee2f79d33bd7b54bec2.tar.gz hardened-refpolicy-ee9f1937dfcafbac9c687ee2f79d33bd7b54bec2.tar.bz2 hardened-refpolicy-ee9f1937dfcafbac9c687ee2f79d33bd7b54bec2.zip |
devices: fix Debian file contexts
When using setfiles to validate file contexts of Debian modular policy
(with DISTRO=debian and MONOLITHIC=n), it fails with:
tmp/all_mods.fc: line 527 is missing fields
tmp/all_mods.fc: line 527 is missing fields
tmp/all_mods.fc: Invalid argument
Here is the content of tmp/all_mods.fc around line 527:
# this is a static /dev dir "backup mount"
# if you want to disable udev, youll have to boot permissive and relabel!
/dev/\.static -d system_u:object_r:device_t
/dev/\.static/dev -d system_u:object_r:device_t
/dev/\.static/dev/(.*)? <<none>>
'
The quote of "you'll" has been eaten by m4 and there is a spurious quote
on the last line, which is reported by setfiles. Fix this by removing
the quote in the comment.
Here is an example of a failed build on Travis-CI:
https://travis-ci.org/fishilico/selinux-refpolicy-patched/jobs/205951446
-rw-r--r-- | policy/modules/kernel/devices.fc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/policy/modules/kernel/devices.fc b/policy/modules/kernel/devices.fc index 19cd9724..84219a87 100644 --- a/policy/modules/kernel/devices.fc +++ b/policy/modules/kernel/devices.fc @@ -185,7 +185,7 @@ ifdef(`distro_suse', ` ifdef(`distro_debian',` # this is a static /dev dir "backup mount" -# if you want to disable udev, you'll have to boot permissive and relabel! +# if you want to disable udev, you will have to boot permissive and relabel! /dev/\.static -d gen_context(system_u:object_r:device_t,s0) /dev/\.static/dev -d gen_context(system_u:object_r:device_t,s0) /dev/\.static/dev/(.*)? <<none>> |