[pkg-cryptsetup-devel] Bug#600522: Possible reason for this bug might be SElinux
Raoul Bönisch
jkl345 at alice-dsl.net
Sun Dec 12 16:14:16 UTC 2010
Hi!
I have SElinux activated in permissive mode. This changes the
output of ls slightly:
$ ls -l "/etc/keys/din-1.luks"
-r--------. 1 root root 9 2010-01-13 13:01 /etc/keys/din-1.luks
This leads to returning wrong value for OWNER in
/lib/cryptsetup/cryptdisks.functions, line 262:
$ ls -l "/etc/keys/din-1.luks" | sed
's/^.\{10\}[+]\?.[^[:space:]]* \([^[:space:]]*\).*/\1/'
1
Returned is value 1, most likely "root" should have been
returned.
A possibly important difference from ls output when using SElnux
is the dot after the permissions letters. If so, the sed line
would have to be changed. I haven't checked the sed line so far.
Greetings,
Raoul Bönisch
More information about the pkg-cryptsetup-devel
mailing list