Skip to contentSkip to conversation

I have a question about log on SELinux

DISCUSSION shintarou_fujiwara 2 participants 2 messages Jul 21, 2005 – Jul 25, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

My name is Shin from JAPAN.

Hello, I'm pretty new to this SELinux world,but one of my friend have some question on logging .

He is now using RHEL4u1 and testing SELinux .

He uses targeted & enforcing and httpd_enable_cgi tuned off .

When he accesses to cbi-bin directory, he got these messages on /var/log/messages.
######################################################
#First one is,

Jul 12 18:16:20 host1 kernel:
audit(1121159780.840:0): avc:  denied  { search } for  pid=3037
comm=httpd name=cgi-bin dev=cciss/c0d0p1 ino=883150
         ^^^^

scontext=user_u:system_r:httpd_t tcontext=system_u:object_r:httpd_sys_script_exec_t tclass=dir

#Second one is,

Jul 12 18:16:20 host1 kernel:
audit(1121159780.840:0): avc:  denied  { getattr } for  pid=3037
comm=httpd path=/var/www/cgi-bin dev=cciss/c0d0p1 ino=883150
         ^^^^

scontext=user_u:system_r:httpd_t tcontext=system_u:object_r:httpd_sys_script_exec_t tclass=dir
########################################################
His question is , the difference between "name" and "path" .

He and I have no idea the differences between these two. They look totaly the same...

Please give us an advice .

Thank you.

--
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 4 lines · shintarou_fujiwara

His question is , the difference between "name" and "path" .

He and I have no idea the differences between these two. They look totaly the same...

name is just a single path component, whereas path is a complete path. Depending on the particular hook location, SELinux can sometimes generate a path for the audit record but in many cases cannot do so and is limited to just the component name. It always logs the device and inode information.

You can use the audit framework to get more information, although RHEL4 may not support it until a later update. Run 'auditctl -e 1' or boot your kernel with audit=1 to enable syscall auditing. Then the audit framework will emit syscall audit messages after any SELinux audit messages.

Signature · 8 lines
Stephen Smalley
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.