Skip to contentSkip to conversation

Plz ask for help :)

DISCUSSION Daniel J Walsh 2 participants 2 messages Apr 1, 2014 3 messages not in the archive SELinux security module

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 002301cf4cc0$4138b160$c3aa1420$@[email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 002901cf4d4b$dfb10500$9f130f00$@[email protected]

#3 lore raw

You need to subscribe to the SELinux upstream list <[email protected]> for kernel questions.

http://www.nsa.gov/research/selinux/subscribe.shtml

Quoted 89 lines · 오대성

Hi all,

My name is Daesung and i am Korean.

I am studying selinux and i have difficulty doing it.

So i send email to you.

Now, i am trying selinux porting on embedded Linux.

Kernel version is 3.10.19-32.

and configuration about selinux is as in the following:

CONFIG_AUDIT=y

CONFIG_AUDIT_GENERIC=y

CONFIG_NETWORK_SECMARK=y

CONFIG_EXT2_FS_SECURITY=y

CONFIG_EXT3_FS_SECURITY=y

CONFIG_EXT4_FS_SECURITY=y

CONFIG_JFS_SECURITY=y

CONFIG_REISERFS_FS_SECURITY=y

CONFIG_JFFS2_FS_SECURITY=y

CONFIG_SECURITY=y

CONFIG_SECURITY_NETWORK=y

CONFIG_SECURITY_SELINUX=y

CONFIG_SECURITY_NETWORK_XFRM=y

CONFIG_NETLABEL=y

CONFIG_SECURITY_SELINUX_BOOTPARAM=y

CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=1

CONFIG_SECURITY_SELINUX_DISABLE=y

CONFIG_SECURITY_SELINUX_DEVELOP=y

CONFIG_SECURITY_SELINUX_AVC_STATS=y

CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1

CONFIG_SECURITY_SELINUX_ENABLE_SECMARK_DEFAULT=y

CONFIG_SECURITY_FILE_CAPABILITIES=y

CONFIG_DEFAULT_SECURITY_SELINUX=y

CONFIG_DEFAULT_SECURITY="selinux"

CONFIG_EXT2_FS_XATTR=y

CONFIG_EXT3_FS_XATTR=y

CONFIG_EXT4_FS_XATTR=y

CONFIG_REISERFS_FS_XATTR=y

But, selinux_complete_init function of security/selinux/hook.c is not called.

And if i run “ls -Z“ command, security context is not printed.

$ ls -Z

? apparmor ? capability.c

selinux_init function is called. but selinux_complete_init function is not called and security context is not printed.

*what should i try ? please help me.*

Best Regards.

Daesung.

#4 lore raw
Quoted 11 lines · Daniel J Walsh
Quoted 11 lines

But, selinux_complete_init function of security/selinux/hook.c is not called.

And if i run “ls -Z“ command, security context is not printed.

$ ls -Z

? apparmor ? capability.c

Quoted 6 lines
Quoted 6 lines

selinux_init function is called. but selinux_complete_init function is not called and security context is not printed.

*what should i try ? please help me.*

You need to load a policy into the kernel. Normally this is done by
the init program.

Was your init program built with SELinux support enabled? And do you have a policy file in the expected location?

Look for output from init as well to help debug.