-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/25/2011 07:15 AM, Harald Hoyer wrote:
> With this patch and:
> 
> # cat myreadahead.te
> 
> module myreadahead 1.0;
> 
> require {
>     type readahead_t;
>     type kmsg_device_t;
>     class chr_file write;
> }
> 
> #============= readahead_t ==============
> allow readahead_t kmsg_device_t:chr_file write;
> 
> # checkmodule -M -m -o myreadahead.mod myreadahead.te
> # semodule_package -o myreadahead.pp -m myreadahead.mod
> # semodule -i myreadahead.pp
> 
> 
> systemd-readahead-collect finally works with selinux enabled on my
> Fedora 15 machine.
> 
> Am 25.05.2011 13:09, schrieb [email protected]:
>> From: Harald Hoyer<[email protected]>
>>
>> At the start of auditd, we are temporarily not able to read
>> from the fanotify fd. Ignoring it, seems to work.
>> ---
>>   src/readahead-collect.c |    2 +-
>>   1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/src/readahead-collect.c b/src/readahead-collect.c
>> index 3c48a02..913a340 100644
>> --- a/src/readahead-collect.c
>> +++ b/src/readahead-collect.c
>> @@ -380,7 +380,7 @@ static int collect(const char *root) {
>>
>>                   if ((n = read(fanotify_fd,&data, sizeof(data)))<  0) {
>>
>> -                        if (errno == EINTR || errno == EAGAIN)
>> +                        if (errno == EINTR || errno == EAGAIN ||
>> errno == EACCES)
>>                                   continue;
>>
>>                           log_error("Failed to read event: %m");
> 
Fix will be in selinux-policy-3.9.16-25.fc15
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk3c+TkACgkQrlYvE4MpobMywQCgw1pacO0CRh7Xlt8m04HeEioc
gKAAoODHLsOxk6FbZQVPlm1vHzFsBngN
=/yK+
-----END PGP SIGNATURE-----
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to