Skip to contentSkip to conversation

system_logging.patch

refpolicy Daniel J Walsh 2 participants 7 messages Mar 18, 2010 – Mar 19, 2010 3 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Can you comment on the levels of the sockets

-------- Original Message --------
Subject: Re: system_logging.patch
Date: Wed, 17 Mar 2010 14:40:11 -0400
From: Christopher J. PeBenito <[email protected]>
Organization: Tresys Technology, LLC
To: Daniel J Walsh <[email protected]>
CC: refpolicy at oss1.tresys.com

Quoted 7 lines · Daniel J Walsh

http://people.fedoraproject.org/~dwalsh/SELinux/F13/system_logging.patch

New log context

Allow setting audit tty

Fixing interfaces

Why are the sockets being set to system high? Same thing for the pid file? They don't have sensitive data.

The logging_manage_all_logs() change is excessive, as "manage" doesn't include relabeling.

Why does auditd need to use nsswitch?

Otherwise merged.

Signature · 8 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.tresys.com/pipermail/refpolicy/attachments/20100318/9014d0dc/attachment.html 

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

#2 lore raw
Quoted 11 lines · Steve Grubb
Quoted 6 lines · Daniel J Walsh
Quoted 3 lines

New log context
Allow setting audit tty
Fixing interfaces

Why are the sockets being set to system high? Same thing for the pid file? They don't have sensitive data.

/var/run/audispd_events and the pid file is the only thing I recognize as being from the audit system. The audit system and everything related to it must be at system high.

Again, why? The socket and pid file do not have sensitive data. The daemon and the log files have the sensitive data.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150
#3 lore raw
Quoted 11 lines · Christopher J. PeBenito
Quoted 9 lines · Steve Grubb
Quoted 7 lines · Daniel J Walsh
Quoted 4 lines

New log context
Allow setting audit tty
Fixing interfaces

Why are the sockets being set to system high? Same thing for the pid file? They don't have sensitive data.

Quoted 8 lines
Quoted 4 lines

/var/run/audispd_events and the pid file is the only thing I recognize as being from the audit system. The audit system and everything related to it must be at system high.

Again, why? The socket and pid file do not have sensitive data. The daemon and the log files have the sensitive data.

So your saying the ability to connect to the socket is going to be blocked on the connecto based on the level of the process on the other end of the socket.

setroubleshoot_t:SystemLow is not going to be able to connectto auditd_t:SystemHigh no matter what the socket and pid file are labeled.

#4 lore raw
Quoted 20 lines · Daniel J Walsh
Quoted 11 lines · Christopher J. PeBenito
Quoted 9 lines · Steve Grubb
Quoted 7 lines · Daniel J Walsh
Quoted 4 lines

New log context
Allow setting audit tty
Fixing interfaces

Why are the sockets being set to system high? Same thing for the pid file? They don't have sensitive data.

Quoted 8 lines
Quoted 4 lines

/var/run/audispd_events and the pid file is the only thing I recognize as being from the audit system. The audit system and everything related to it must be at system high.

Again, why? The socket and pid file do not have sensitive data. The daemon and the log files have the sensitive data.

Quoted 6 lines

So your saying the ability to connect to the socket is going to be blocked on the connecto based on the level of the process on the other end of the socket.

setroubleshoot_t:SystemLow is not going to be able to connectto auditd_t:SystemHigh no matter what the socket and pid file are labeled.

I'm not sure what you're trying to argue. The connectto is of course going to be checked if a connect gets past the MAC write check on the sock_file.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150
#5 lore raw
Quoted 33 lines · Christopher J. PeBenito
Quoted 31 lines · Daniel J Walsh
Quoted 15 lines · Christopher J. PeBenito
Quoted 12 lines · Steve Grubb
Quoted 9 lines · Daniel J Walsh
Quoted 5 lines

New log context
Allow setting audit tty
Fixing interfaces

Why are the sockets being set to system high? Same thing for the pid file? They don't have sensitive data.

Quoted 10 lines
Quoted 5 lines

/var/run/audispd_events and the pid file is the only thing I recognize as being from the audit system. The audit system and everything related to it must be at system high.

Again, why? The socket and pid file do not have sensitive data. The daemon and the log files have the sensitive data.

So your saying the ability to connect to the socket is going to be blocked on the connecto based on the level of the process on the other end of the socket.

Quoted 8 lines
Quoted 3 lines

setroubleshoot_t:SystemLow is not going to be able to connectto auditd_t:SystemHigh no matter what the socket and pid file are labeled.

I'm not sure what you're trying to argue. The connectto is of course going to be checked if a connect gets past the MAC write check on the sock_file.

I am agreeing with you, by saying the connectto check will block no matter what the socket permission is.

But on Steve's point of view. We would have to jump through hoops to get auditd to create the pid file and socket at SystemLow, Since it runs at SystemHigh.

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

#7 lore raw
Quoted 7 lines · Steve Grubb
Quoted 6 lines · Christopher J. PeBenito
Quoted 5 lines · Steve Grubb
Quoted 4 lines · Daniel J Walsh
Quoted 3 lines

New log context
Allow setting audit tty
Fixing interfaces

Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

Why are the sockets being set to system high? Same thing for the pid file? They don't have sensitive data.

/var/run/audispd_events and the pid file is the only thing I recognize as being from the audit system. The audit system and everything related to it must be at system high.

Again, why? The socket and pid file do not have sensitive data.

I will take the patch for the audit files because these files are created by a system high process and thus will be system high; relabeling shouldn't lower their sensitivity. I don't agree with any of the following arguments otherwise.

Quoted 2 lines

The socket is the realtime interface for audit data, so yes its got sensitive data.

No, it is a means to connect to the daemon, like the port in internet domain sockets (which are all system low in refpolicy). In my opinion the process-process connectto permission is where the most confidentiality-relevant check happens.

Quoted 4 lines

The pid file is high because the audit daemon is. It can be argued that the pid file is used by the initscripts to locate the daemon for signalling to reload, rotate logs, terminate, or other actions that should be limited to the security officer.

Knowing the pid of the auditd doesn't mean you can do anything to it. What you seem to be implying is that the integrity of the file needs to be preserved, which is what TE is for.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150

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

#9 lore raw
Quoted 10 lines · Steve Grubb
Quoted 8 lines · Christopher J. PeBenito
Quoted 3 lines

The socket is the realtime interface for audit data, so yes its got sensitive data.

No, it is a means to connect to the daemon, like the port in internet domain sockets (which are all system low in refpolicy). In my opinion the process-process connectto permission is where the most confidentiality-relevant check happens.

Quoted 7 lines

I would keep it high to make sure a process at system low cannot gain access to audit data that it should not. Sure, the DAC check will require root. But not all root roles are the security officer. There are no checks done by the daemon to see who is connecting.

SELinux will check.

Quoted 14 lines
Quoted 9 lines
Quoted 5 lines

The pid file is high because the audit daemon is. It can be argued that the pid file is used by the initscripts to locate the daemon for signalling to reload, rotate logs, terminate, or other actions that should be limited to the security officer.

Knowing the pid of the auditd doesn't mean you can do anything to it. What you seem to be implying is that the integrity of the file needs to be preserved, which is what TE is for.

Sure. There is that reason, too. :)

Thanks,
-Steve