* dracut: ordering of modules
@ 2012-02-10 15:01 Mimi Zohar
2012-02-10 15:31 ` Roberto Sassu
2012-02-13 9:59 ` Harald Hoyer
0 siblings, 2 replies; 12+ messages in thread
From: Mimi Zohar @ 2012-02-10 15:01 UTC (permalink / raw)
To: initramfs; +Cc: Harald Hoyer, linux-kernel, Roberto Sassu
Hi Harald,
Originally, 98integrity/ima-policy-load.sh didn't start executing before
98selinux/selinux-loadpolicy.sh finished, but unfortunately it now does.
inst_hook pre-pivot 50 "$moddir/selinux-loadpolicy.sh"
inst_hook pre-pivot 62 "$moddir/ima-policy-load.sh"
As the IMA policy could be dependent on LSM runtime info, this is a
problem.
[ 10.040574] type=1805 audit(1328865524.387:2): action="dont_measure" fsmagic="0x9fa0" res=0
[ 10.040663] type=1805 audit(1328865524.387:3): action="dont_appraise" fsmagic="0x9fa0" res=0
[ 10.040729] type=1805 audit(1328865524.387:4): action="dont_measure" fsmagic="0x62656572" res=0
[ 10.040792] type=1805 audit(1328865524.387:5): action="dont_appraise" fsmagic="0x62656572" res=0
[ 10.040857] type=1805 audit(1328865524.387:6): action="dont_measure" fsmagic="0x64626720" res=0
[ 10.040921] type=1805 audit(1328865524.387:7): action="dont_appraise" fsmagic="0x64626720" res=0
[ 10.040985] type=1805 audit(1328865524.387:8): action="dont_measure" fsmagic="0x01021994" res=0
[ 10.041047] type=1805 audit(1328865524.387:9): action="dont_appraise" fsmagic="0x01021994" res=0
[ 10.041113] type=1805 audit(1328865524.387:10): action="dont_measure" fsmagic="0x73636673" res=0
[ 10.041177] type=1805 audit(1328865524.387:11): action="dont_appraise" fsmagic="0x73636673" res=0
[ 11.898956] SELinux: Completing initialization.
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: dracut: ordering of modules
2012-02-10 15:01 dracut: ordering of modules Mimi Zohar
@ 2012-02-10 15:31 ` Roberto Sassu
[not found] ` <4F353840.8050505-8RLafaVCWuNeoWH0uzbU5w@public.gmane.org>
2012-02-13 9:59 ` Harald Hoyer
1 sibling, 1 reply; 12+ messages in thread
From: Roberto Sassu @ 2012-02-10 15:31 UTC (permalink / raw)
To: Mimi Zohar
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA, Harald Hoyer,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
systemd-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
selinux-TuqUDEhatI4ANWPb/1PvSmm0pvjS0E/A
Hi Mimi
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.
>
> inst_hook pre-pivot 50 "$moddir/selinux-loadpolicy.sh"
> inst_hook pre-pivot 62 "$moddir/ima-policy-load.sh"
>
> As the IMA policy could be dependent on LSM runtime info, this is a
> problem.
>
> [ 10.040574] type=1805 audit(1328865524.387:2): action="dont_measure" fsmagic="0x9fa0" res=0
> [ 10.040663] type=1805 audit(1328865524.387:3): action="dont_appraise" fsmagic="0x9fa0" res=0
> [ 10.040729] type=1805 audit(1328865524.387:4): action="dont_measure" fsmagic="0x62656572" res=0
> [ 10.040792] type=1805 audit(1328865524.387:5): action="dont_appraise" fsmagic="0x62656572" res=0
> [ 10.040857] type=1805 audit(1328865524.387:6): action="dont_measure" fsmagic="0x64626720" res=0
> [ 10.040921] type=1805 audit(1328865524.387:7): action="dont_appraise" fsmagic="0x64626720" res=0
> [ 10.040985] type=1805 audit(1328865524.387:8): action="dont_measure" fsmagic="0x01021994" res=0
> [ 10.041047] type=1805 audit(1328865524.387:9): action="dont_appraise" fsmagic="0x01021994" res=0
> [ 10.041113] type=1805 audit(1328865524.387:10): action="dont_measure" fsmagic="0x73636673" res=0
> [ 10.041177] type=1805 audit(1328865524.387:11): action="dont_appraise" fsmagic="0x73636673" res=0
> [ 11.898956] SELinux: Completing initialization.
>
> 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
>
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: dracut: ordering of modules
2012-02-10 15:01 dracut: ordering of modules Mimi Zohar
2012-02-10 15:31 ` Roberto Sassu
@ 2012-02-13 9:59 ` Harald Hoyer
[not found] ` <4F38DEF0.8010202-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-02-13 15:02 ` Hannes Reinecke
1 sibling, 2 replies; 12+ messages in thread
From: Harald Hoyer @ 2012-02-13 9:59 UTC (permalink / raw)
To: Mimi Zohar; +Cc: initramfs, linux-kernel, Roberto Sassu
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.
>
> inst_hook pre-pivot 50 "$moddir/selinux-loadpolicy.sh"
> inst_hook pre-pivot 62 "$moddir/ima-policy-load.sh"
>
> As the IMA policy could be dependent on LSM runtime info, this is a
> problem.
>
> [ 10.040574] type=1805 audit(1328865524.387:2): action="dont_measure" fsmagic="0x9fa0" res=0
> [ 10.040663] type=1805 audit(1328865524.387:3): action="dont_appraise" fsmagic="0x9fa0" res=0
> [ 10.040729] type=1805 audit(1328865524.387:4): action="dont_measure" fsmagic="0x62656572" res=0
> [ 10.040792] type=1805 audit(1328865524.387:5): action="dont_appraise" fsmagic="0x62656572" res=0
> [ 10.040857] type=1805 audit(1328865524.387:6): action="dont_measure" fsmagic="0x64626720" res=0
> [ 10.040921] type=1805 audit(1328865524.387:7): action="dont_appraise" fsmagic="0x64626720" res=0
> [ 10.040985] type=1805 audit(1328865524.387:8): action="dont_measure" fsmagic="0x01021994" res=0
> [ 10.041047] type=1805 audit(1328865524.387:9): action="dont_appraise" fsmagic="0x01021994" res=0
> [ 10.041113] type=1805 audit(1328865524.387:10): action="dont_measure" fsmagic="0x73636673" res=0
> [ 10.041177] type=1805 audit(1328865524.387:11): action="dont_appraise" fsmagic="0x73636673" res=0
> [ 11.898956] SELinux: Completing initialization.
>
> 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.
echo 'add_dracutmodules+=" selinux "' >> /etc/dracut.conf.d/99-my.conf
although, this also should do the thing:
$ git diff modules.d/98integrity/module-setup.sh
diff --git a/modules.d/98integrity/module-setup.sh
b/modules.d/98integrity/module-setup.sh
index 7d5771c..ff1b4aa 100755
--- a/modules.d/98integrity/module-setup.sh
+++ b/modules.d/98integrity/module-setup.sh
@@ -7,7 +7,7 @@ check() {
}
depends() {
- echo masterkey securityfs
+ echo masterkey securityfs selinux
return 0
}
^ permalink raw reply related [flat|nested] 12+ messages in thread[parent not found: <4F38DEF0.8010202-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: dracut: ordering of modules
[not found] ` <4F38DEF0.8010202-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2012-02-13 10:17 ` Roberto Sassu
[not found] ` <4F38E337.7030200-8RLafaVCWuNeoWH0uzbU5w@public.gmane.org>
2012-02-13 14:56 ` Mimi Zohar
1 sibling, 1 reply; 12+ messages in thread
From: Roberto Sassu @ 2012-02-13 10:17 UTC (permalink / raw)
To: Harald Hoyer
Cc: Mimi Zohar, initramfs-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
systemd-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
selinux-TuqUDEhatI4ANWPb/1PvSmm0pvjS0E/A
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.
>>
>> inst_hook pre-pivot 50 "$moddir/selinux-loadpolicy.sh"
>> inst_hook pre-pivot 62 "$moddir/ima-policy-load.sh"
>>
>> As the IMA policy could be dependent on LSM runtime info, this is a
>> problem.
>>
>> [ 10.040574] type=1805 audit(1328865524.387:2): action="dont_measure" fsmagic="0x9fa0" res=0
>> [ 10.040663] type=1805 audit(1328865524.387:3): action="dont_appraise" fsmagic="0x9fa0" res=0
>> [ 10.040729] type=1805 audit(1328865524.387:4): action="dont_measure" fsmagic="0x62656572" res=0
>> [ 10.040792] type=1805 audit(1328865524.387:5): action="dont_appraise" fsmagic="0x62656572" res=0
>> [ 10.040857] type=1805 audit(1328865524.387:6): action="dont_measure" fsmagic="0x64626720" res=0
>> [ 10.040921] type=1805 audit(1328865524.387:7): action="dont_appraise" fsmagic="0x64626720" res=0
>> [ 10.040985] type=1805 audit(1328865524.387:8): action="dont_measure" fsmagic="0x01021994" res=0
>> [ 10.041047] type=1805 audit(1328865524.387:9): action="dont_appraise" fsmagic="0x01021994" res=0
>> [ 10.041113] type=1805 audit(1328865524.387:10): action="dont_measure" fsmagic="0x73636673" res=0
>> [ 10.041177] type=1805 audit(1328865524.387:11): action="dont_appraise" fsmagic="0x73636673" res=0
>> [ 11.898956] SELinux: Completing initialization.
>>
>> 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
[ 3.659899] dracut: Switching root
> echo 'add_dracutmodules+=" selinux "'>> /etc/dracut.conf.d/99-my.conf
>
> although, this also should do the thing:
>
> $ git diff modules.d/98integrity/module-setup.sh
> diff --git a/modules.d/98integrity/module-setup.sh
> b/modules.d/98integrity/module-setup.sh
> index 7d5771c..ff1b4aa 100755
> --- a/modules.d/98integrity/module-setup.sh
> +++ b/modules.d/98integrity/module-setup.sh
> @@ -7,7 +7,7 @@ check() {
> }
>
> depends() {
> - echo masterkey securityfs
> + echo masterkey securityfs selinux
> return 0
> }
>
>
>
>
>
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: dracut: ordering of modules
[not found] ` <4F38DEF0.8010202-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-02-13 10:17 ` Roberto Sassu
@ 2012-02-13 14:56 ` Mimi Zohar
1 sibling, 0 replies; 12+ messages in thread
From: Mimi Zohar @ 2012-02-13 14:56 UTC (permalink / raw)
To: Harald Hoyer
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Roberto Sassu
On Mon, 2012-02-13 at 10:59 +0100, 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.
> >
> > inst_hook pre-pivot 50 "$moddir/selinux-loadpolicy.sh"
> > inst_hook pre-pivot 62 "$moddir/ima-policy-load.sh"
> >
> > As the IMA policy could be dependent on LSM runtime info, this is a
> > problem.
> >
> > [ 10.040574] type=1805 audit(1328865524.387:2): action="dont_measure" fsmagic="0x9fa0" res=0
> > [ 10.040663] type=1805 audit(1328865524.387:3): action="dont_appraise" fsmagic="0x9fa0" res=0
> > [ 10.040729] type=1805 audit(1328865524.387:4): action="dont_measure" fsmagic="0x62656572" res=0
> > [ 10.040792] type=1805 audit(1328865524.387:5): action="dont_appraise" fsmagic="0x62656572" res=0
> > [ 10.040857] type=1805 audit(1328865524.387:6): action="dont_measure" fsmagic="0x64626720" res=0
> > [ 10.040921] type=1805 audit(1328865524.387:7): action="dont_appraise" fsmagic="0x64626720" res=0
> > [ 10.040985] type=1805 audit(1328865524.387:8): action="dont_measure" fsmagic="0x01021994" res=0
> > [ 10.041047] type=1805 audit(1328865524.387:9): action="dont_appraise" fsmagic="0x01021994" res=0
> > [ 10.041113] type=1805 audit(1328865524.387:10): action="dont_measure" fsmagic="0x73636673" res=0
> > [ 10.041177] type=1805 audit(1328865524.387:11): action="dont_appraise" fsmagic="0x73636673" res=0
> > [ 11.898956] SELinux: Completing initialization.
> >
> > 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.
>
> echo 'add_dracutmodules+=" selinux "' >> /etc/dracut.conf.d/99-my.conf
>
> although, this also should do the thing:
>
> $ git diff modules.d/98integrity/module-setup.sh
> diff --git a/modules.d/98integrity/module-setup.sh
> b/modules.d/98integrity/module-setup.sh
> index 7d5771c..ff1b4aa 100755
> --- a/modules.d/98integrity/module-setup.sh
> +++ b/modules.d/98integrity/module-setup.sh
> @@ -7,7 +7,7 @@ check() {
> }
>
> depends() {
> - echo masterkey securityfs
> + echo masterkey securityfs selinux
> return 0
> }
Already tried that, as mentioned above.
thanks,
Mimi
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: dracut: ordering of modules
2012-02-13 9:59 ` Harald Hoyer
[not found] ` <4F38DEF0.8010202-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2012-02-13 15:02 ` Hannes Reinecke
1 sibling, 0 replies; 12+ messages in thread
From: Hannes Reinecke @ 2012-02-13 15:02 UTC (permalink / raw)
To: Harald Hoyer; +Cc: Mimi Zohar, initramfs, linux-kernel, Roberto Sassu
On 02/13/2012 10:59 AM, Harald Hoyer wrote:
> Am 10.02.2012 16:01, schrieb Mimi Zohar:
>> Hi Harald,
>>
[ .. ]
Ohh, can you _order_ dracut modules now?
Harald, that'll be four modules for me, please :-)
Sorry, I just _had_ to go for that cheap pun.
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2012-02-14 18:53 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-10 15:01 dracut: ordering of modules Mimi Zohar
2012-02-10 15:31 ` Roberto Sassu
[not found] ` <4F353840.8050505-8RLafaVCWuNeoWH0uzbU5w@public.gmane.org>
2012-02-10 18:14 ` [systemd-devel] " Lennart Poettering
2012-02-12 0:17 ` Mimi Zohar
2012-02-13 9:59 ` Harald Hoyer
[not found] ` <4F38DEF0.8010202-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-02-13 10:17 ` Roberto Sassu
[not found] ` <4F38E337.7030200-8RLafaVCWuNeoWH0uzbU5w@public.gmane.org>
2012-02-13 10:29 ` Harald Hoyer
2012-02-13 17:00 ` Daniel J Walsh
2012-02-14 15:53 ` Roberto Sassu
[not found] ` <4F3A836E.1020208-8RLafaVCWuNeoWH0uzbU5w@public.gmane.org>
2012-02-14 18:53 ` Daniel J Walsh
2012-02-13 14:56 ` Mimi Zohar
2012-02-13 15:02 ` Hannes Reinecke
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox