Skip to contentSkip to conversation

Filesystem problems

DISCUSSION Ignacio Tripodi 4 participants 7 messages Oct 15, 2003 SELinux security module

lore
Share & tools
lore
#0 lore raw

I had a 2.4 kernel with SELinux enabled, could load a policy, relabeled the filesystem (ext3) and was able to see the extended attributes of all files. However, after I upgraded to the 2.6 SELinux kernel, I wasn't able to load the policy again. It still lets me in since I enabled the development mode but the tools don't recognize the running kernel as an SELinux-enabled kernel. Besides, this is what I get in the dmesg after it mounts the root filesystem:

security_context_to_sid: called before initial load_policy on unknown context system_u:object_
r:file_t
security_context_to_sid: called before initial load_policy on unknown context system_u:object_
r:root_t

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 8 lines · Ignacio Tripodi

I had a 2.4 kernel with SELinux enabled, could load a policy, relabeled the filesystem (ext3) and was able to see the extended attributes of all files. However, after I upgraded to the 2.6 SELinux kernel, I wasn't able to load the policy again. It still lets me in since I enabled the development mode but the tools don't recognize the running kernel as an SELinux-enabled kernel. Besides, this is what I get in the dmesg after it mounts the root filesystem:

Quoted 6 lines

security_context_to_sid: called before initial load_policy on unknown context system_u:object_
r:file_t
security_context_to_sid: called before initial load_policy on unknown context system_u:object_
r:root_t

With kernel 2.6.0-test7, I have a lot of ext3 problems with SELinux enabled, which always ends in a filesystem crash and a necessary fsck.ext3 run at the next boot. Don't know if this comes from the usage of extended attributes or if ext3 itself is broken in 2.6.

Thorsten

Signature · 9 lines
Thorsten Kukuk       http://www.suse.de/~kukuk/        [email protected]
SuSE Linux AG        Deutschherrnstr. 15-19        D-90429 Nuernberg
--------------------------------------------------------------------    
Key fingerprint = A368 676B 5E1B 3E46 CFCE  2D97 F8FD 4E23 56C6 FB4B

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw
Quoted 4 lines · Thorsten Kukuk

With kernel 2.6.0-test7, I have a lot of ext3 problems with SELinux enabled, which always ends in a filesystem crash and a necessary fsck.ext3 run at the next boot. Don't know if this comes from the usage of extended attributes or if ext3 itself is broken in 2.6.

Details? I haven't seen this yet with 2.6.0-test7 and ext3. Did it occur with 2.6.0-test6?

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#3 lore raw
Quoted 8 lines · Stephen Smalley
Quoted 4 lines · Thorsten Kukuk

With kernel 2.6.0-test7, I have a lot of ext3 problems with SELinux enabled, which always ends in a filesystem crash and a necessary fsck.ext3 run at the next boot. Don't know if this comes from the usage of extended attributes or if ext3 itself is broken in 2.6.

Details? I haven't seen this yet with 2.6.0-test7 and ext3. Did it occur with 2.6.0-test6?

I don't know if it occur with 2.6.0-test6, normally I use reiserfs or ext2 (with both I have no problems). It is the first time that I use ext3 with 2.6.0.

If I make a clean shutdown and run a fsck.ext3 -f on the ext3 partition from a rescue system, fsck finds all kind of errors on this device. Lost blocks, wrong number of blocks, ... Sometimes grub is not able to read it at all.

Thorsten

Signature · 9 lines
Thorsten Kukuk       http://www.suse.de/~kukuk/        [email protected]
SuSE Linux AG        Deutschherrnstr. 15-19        D-90429 Nuernberg
--------------------------------------------------------------------    
Key fingerprint = A368 676B 5E1B 3E46 CFCE  2D97 F8FD 4E23 56C6 FB4B

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#4 lore raw
Quoted 4 lines · Thorsten Kukuk

If I make a clean shutdown and run a fsck.ext3 -f on the ext3 partition from a rescue system, fsck finds all kind of errors on this device. Lost blocks, wrong number of blocks, ... Sometimes grub is not able to read it at all.

What version of fsck? There were issues with the EA support in older versions of fsck, IIRC.

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#5 lore raw
In reply to Ignacio Tripodi
Quoted 8 lines · Ignacio Tripodi

I had a 2.4 kernel with SELinux enabled, could load a policy, relabeled the filesystem (ext3) and was able to see the extended attributes of all files. However, after I upgraded to the 2.6 SELinux kernel, I wasn't able to load the policy again. It still lets me in since I enabled the development mode but the tools don't recognize the running kernel as an SELinux-enabled kernel. Besides, this is what I get in the dmesg after it mounts the root filesystem:

Quoted 6 lines

security_context_to_sid: called before initial load_policy on unknown context system_u:object_
r:file_t
security_context_to_sid: called before initial load_policy on unknown context system_u:object_
r:root_t

Are you trying to load an initial policy via initrd?

- James

Signature · 9 lines
James Morris
<[email protected]>



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#6 lore raw

Quoting James Morris <[email protected]>:

Quoted 1 line

Are you trying to load an initial policy via initrd?

Yes. I patched the mkinitrd script with the patch provided by the setools package and created a new initrd image for this kernel. Since I haven't modified any of the rc files myself I assume that's where it's trying to load the policy from.

Ignacio

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.