i'm CCing the systemd and Fedora SELinux mailing lists.
Unfortunately, the SELinux policy initialization (at least
in Fedora 16) has been moved to systemd, so, now, loading an
IMA policy cannot be done in the initial ramdisk.
Further, the SELinux policy loading code is not in a unit file
but embedded in the main binary, which means that the new code for
loading IMA policies must be added just after that point.
I already wrote a patch for this. I need some time to test it
and will post in the systemd mailing list at the beginning of
the next week.
Roberto Sassu
On 02/10/2012 04:01 PM, Mimi Zohar wrote:
Hi Harald,
Originally, 98integrity/ima-policy-load.sh didn't start executing before
98selinux/selinux-loadpolicy.sh finished, but unfortunately it now does.
I've tried adding a depend for selinux, but it doesn't seem to resolve
the problem, nor does delaying 98integrity to later. Any suggestions
would be appreciated.
thanks,
Mimi
--
selinux mailing list
selinux@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/selinux
02-13-2012, 09:17 AM
Roberto Sassu
dracut: ordering of modules
On 02/13/2012 10:59 AM, Harald Hoyer wrote:
Am 10.02.2012 16:01, schrieb Mimi Zohar:
Hi Harald,
Originally, 98integrity/ima-policy-load.sh didn't start executing before
98selinux/selinux-loadpolicy.sh finished, but unfortunately it now does.
I've tried adding a depend for selinux, but it doesn't seem to resolve
the problem, nor does delaying 98integrity to later. Any suggestions
would be appreciated.
thanks,
Mimi
In Fedora the selinux dracut module is disabled by default. You have to enable
it manually.
Hi Harald
this functionality seems to be broken in dracut due to a change in the
SELinux load_policy tool.
After enabling the selinux module in dracut, i obtain:
[ 3.369059] dracut: Loading SELinux policy
[ 3.449850] dracut: /sbin/load_policy: Can't load policy: No such
file or directory
--
selinux mailing list
selinux@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/selinux
02-13-2012, 04:00 PM
Daniel J Walsh
dracut: ordering of modules
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 02/13/2012 05:29 AM, Harald Hoyer wrote:
> Am 13.02.2012 11:17, schrieb Roberto Sassu:
>> Hi Harald
>>
>> this functionality seems to be broken in dracut due to a change
>> in the SELinux load_policy tool. After enabling the selinux
>> module in dracut, i obtain:
>>
>> [ 3.369059] dracut: Loading SELinux policy [ 3.449850]
>> dracut: /sbin/load_policy: Can't load policy: No such file or
>> directory [ 3.659899] dracut: Switching root
>>
>
> This error can have multiple causes... Dan?
Well likeliest would be selinux-policy package is not installed.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
i confirm this issue happens in a Fedora 16 system with the
selinux-policy package installed.
The selinux dracut module tries to load the policy but returns
with the error below. After switching root, the policy is
successfully loaded by Systemd.
Thanks
Roberto Sassu
On 02/13/2012 06:00 PM, Daniel J Walsh wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 02/13/2012 05:29 AM, Harald Hoyer wrote:
Am 13.02.2012 11:17, schrieb Roberto Sassu:
Hi Harald
this functionality seems to be broken in dracut due to a change
in the SELinux load_policy tool. After enabling the selinux
module in dracut, i obtain:
[ 3.369059] dracut: Loading SELinux policy [ 3.449850]
dracut: /sbin/load_policy: Can't load policy: No such file or
directory [ 3.659899] dracut: Switching root
This error can have multiple causes... Dan?
Well likeliest would be selinux-policy package is not installed.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
--
selinux mailing list
selinux@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/selinux
02-14-2012, 05:53 PM
Daniel J Walsh
dracut: ordering of modules
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 02/14/2012 10:53 AM, Roberto Sassu wrote:
> Hi Dan
>
> i confirm this issue happens in a Fedora 16 system with the
> selinux-policy package installed.
>
> The selinux dracut module tries to load the policy but returns with
> the error below. After switching root, the policy is successfully
> loaded by Systemd.
>
> Thanks
>
> Roberto Sassu
>
>
Well in F16 dracut is not supposed to load the policy.
> On 02/13/2012 06:00 PM, Daniel J Walsh wrote: On 02/13/2012 05:29
> AM, Harald Hoyer wrote:
>>>> Am 13.02.2012 11:17, schrieb Roberto Sassu:
>>>>> Hi Harald
>>>>>
>>>>> this functionality seems to be broken in dracut due to a
>>>>> change in the SELinux load_policy tool. After enabling the
>>>>> selinux module in dracut, i obtain:
>>>>>
>>>>> [ 3.369059] dracut: Loading SELinux policy [
>>>>> 3.449850] dracut: /sbin/load_policy: Can't load policy: No
>>>>> such file or directory [ 3.659899] dracut: Switching
>>>>> root
>>>>>
>>>>
>>>> This error can have multiple causes... Dan?
>
> Well likeliest would be selinux-policy package is not installed.
>
> -- selinux mailing list selinux@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/selinux
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/