Skip to contentSkip to conversation

refpolicy doesnt see ext4 but fix_files does

DISCUSSION Justin Mattock 2 participants 5 messages Aug 11, 2009 SELinux security module

lore
Share & tools
lore
#0 lore raw

seems Ive hit yet another interesting thing (the perils of creating my own system)

in refpolicy sudo make relabel
(shows this)

Relabeling filesystem types: ext2 ext3 xfs jfs No filesystems with extended attributes found!
make: *** [relabel] Error 1

kernel .config does have ext4 built-in ext3,ext2 are not built-in(only modules).

fixfiles relabel shows:

Files in the /tmp directory may be labeled incorrectly, this command can remove all files in /tmp. If you choose to remove files from /tmp, a reboot will be required after completion.

Do you wish to clean out the /tmp directory [N]? y
Cleaning out /tmp
/bin/rm: cannot remove `/tmp/.X11-unix': Is a directory
filespec_add: conflicting specifications for /usr/bin/getconf and /usr/lib64/glibc/getconf/POSIX_V7_LP64_OFF64, using system_u:object_r:lib_t.
filespec_add: conflicting specifications for /usr/bin/git and /usr/lib64/git-core/git-annotate, using system_u:object_r:lib_t.
find: unknown predicate `-context'
find: unknown predicate `-context'

(seems to have relabeled as should)

the partition scheme is simple:
all ext4 for testing(and a swap on the side!!).

Signature · 1 line
Justin P. Mattock
#1 lore raw
Quoted 9 lines · Justin Mattock

seems Ive hit yet another interesting thing (the perils of creating my own system)

in refpolicy sudo make relabel
(shows this)

Relabeling filesystem types: ext2 ext3 xfs jfs No filesystems with extended attributes found!
make: *** [relabel] Error 1

Fixed in git.

Also, please don't unnecessarily cross post the refpolicy and selinux lists.

Quoted 28 lines

kernel .config does have ext4 built-in ext3,ext2 are not built-in(only modules).

fixfiles relabel shows:

Files in the /tmp directory may be labeled incorrectly, this command can remove all files in /tmp. If you choose to remove files from /tmp, a reboot will be required after completion.

Do you wish to clean out the /tmp directory [N]? y
Cleaning out /tmp
/bin/rm: cannot remove `/tmp/.X11-unix': Is a directory
filespec_add: conflicting specifications for /usr/bin/getconf and /usr/lib64/glibc/getconf/POSIX_V7_LP64_OFF64, using system_u:object_r:lib_t.
filespec_add: conflicting specifications for /usr/bin/git and /usr/lib64/git-core/git-annotate, using system_u:object_r:lib_t.
find: unknown predicate `-context'
find: unknown predicate `-context'

(seems to have relabeled as should)

the partition scheme is simple:
all ext4 for testing(and a swap on the side!!).

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150
#2 lore raw
Quoted 13 lines · Christopher J. PeBenito
Quoted 10 lines · Justin Mattock

seems Ive hit yet another interesting thing (the perils of creating my own system)

in refpolicy sudo make relabel
(shows this)

Relabeling filesystem types: ext2 ext3 xfs jfs No filesystems with extended attributes found!
make: *** [relabel] Error 1

Quoted 35 lines

Fixed in git.

Also, please don't unnecessarily cross post the refpolicy and selinux lists.

Quoted 29 lines

kernel .config does have ext4 built-in ext3,ext2 are not built-in(only modules).

fixfiles relabel shows:

Files in the /tmp directory may be labeled incorrectly, this command can remove all files in /tmp. If you choose to remove files from /tmp, a reboot will be required after completion.

Do you wish to clean out the /tmp directory [N]? y
Cleaning out /tmp
/bin/rm: cannot remove `/tmp/.X11-unix': Is a directory
filespec_add: conflicting specifications for /usr/bin/getconf and /usr/lib64/glibc/getconf/POSIX_V7_LP64_OFF64, using system_u:object_r:lib_t.
filespec_add: conflicting specifications for /usr/bin/git and /usr/lib64/git-core/git-annotate, using system_u:object_r:lib_t.
find: unknown predicate `-context'
find: unknown predicate `-context'

(seems to have relabeled as should)

the partition scheme is simple:
all ext4 for testing(and a swap on the side!!).

fixed as in git today, or a few days ago. i.g. pulled yesterday.

Justin P. Mattock

#3 lore raw
Quoted 14 lines · Justin P. Mattock
Quoted 13 lines · Christopher J. PeBenito
Quoted 10 lines · Justin Mattock

seems Ive hit yet another interesting thing (the perils of creating my own system)

in refpolicy sudo make relabel
(shows this)

Relabeling filesystem types: ext2 ext3 xfs jfs No filesystems with extended attributes found!
make: *** [relabel] Error 1

Quoted 4 lines
Quoted 1 line

Fixed in git.

fixed as in git today, or a few days ago. i.g. pulled yesterday.

Fixed right before I sent the email.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150
#4 lore raw
Quoted 22 lines · Christopher J. PeBenito
Quoted 18 lines · Justin P. Mattock
Quoted 16 lines · Christopher J. PeBenito
Quoted 11 lines · Justin Mattock

seems Ive hit yet another interesting thing (the perils of creating my own system)

in refpolicy sudo make relabel
(shows this)

Relabeling filesystem types: ext2 ext3 xfs jfs No filesystems with extended attributes found!
make: *** [relabel] Error 1

Fixed in git.

Quoted 7 lines
Quoted 3 lines

fixed as in git today, or a few days ago. i.g. pulled yesterday.

Fixed right before I sent the email.

Nice work.
just pulled, make relabel worked like
a charm. Now I just have to figure out
selinux_init_load_policy for init.c

Justin P. Mattock