diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2014-11-06 16:48:11 +0100 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-11-14 14:24:11 -0500 |
commit | 5ce04ca64c9cab96901f3eb6f6000aabf5d17e43 (patch) | |
tree | fc84f77e5cc2304757c10c92ff33194c72a2391a /rule_generator/75-cd-aliases-generator.rules | |
parent | afd5b52fcf667b771d90223992ca0454afdde866 (diff) |
shared: create files even if the SELinux policy has no context for them
The SELinux policy defines no context for some files. E.g.:
$ matchpathcon /run/lock/subsys /dev/mqueue
/run/lock/subsys <<none>>
/dev/mqueue <<none>>
We still need to be able to create them.
In this case selabel_lookup_raw() returns ENOENT. We should then skip
setfscreatecon(), but still return success.
It was broken since c34255bdb2 ("label: unify code to make directories,
symlinks").
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'rule_generator/75-cd-aliases-generator.rules')
0 files changed, 0 insertions, 0 deletions