Skip to contentSkip to conversation

recommending interfaces for audit2allow

DISCUSSION Russell Coker 2 participants 2 messages Jul 10, 2010 – Jul 14, 2010 SELinux security module

lore
Share & tools
lore
#0 lore raw

corenet_tcp_connect_mysqld_port(foo_milter_t)

I think that we need a way for an interface file to recommend itself to have a higher priority for certain matches. For example the above policy line does permit foo_milter_t to talk to a MySQL server on a different system. But you probably want something like the following:

mysql_tcp_connect(foo_milter_t)
optional_policy(`
mysql_stream_connect(foo_milter_t)
')

So it seems that audit2allow should know that mysql_tcp_connect() is a preferred option to corenet_tcp_connect_mysqld_port() and that having an option to connect to a Unix domain socket would be good.

Also maybe we should have a single interface with an optional section for MySQL client access.

Signature · 8 lines
[email protected]
http://etbe.coker.com.au/          My Main Blog
http://doc.coker.com.au/           My Documents Blog

--
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 12 lines · Russell Coker

corenet_tcp_connect_mysqld_port(foo_milter_t)

I think that we need a way for an interface file to recommend itself to have a higher priority for certain matches. For example the above policy line does permit foo_milter_t to talk to a MySQL server on a different system. But you probably want something like the following:

mysql_tcp_connect(foo_milter_t)
optional_policy(`
mysql_stream_connect(foo_milter_t)
')

Quoted 7 lines

So it seems that audit2allow should know that mysql_tcp_connect() is a preferred option to corenet_tcp_connect_mysqld_port() and that having an option to connect to a Unix domain socket would be good.

Also maybe we should have a single interface with an optional section for MySQL client access.

Agreed. This seems like it could be solved if sepolgen just automatically demoted corenet_* since that would probably be the majority of cases where this happens (since corenet is allowed to essentially break abstractions).

--
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.