Skip to contentSkip to conversation

sepolgen-ifgen

DISCUSSION Kim Lawson-Jenkins 2 participants 3 messages Apr 25, 2008 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi,

Can someone point me to some text on the Web that explains sepolgen-ifgen? When running audit2allow I received an error "could not open interface info" and I found a post stating that using sepolgen-ifgen might help solve this particular problem, but then I couldn't find details about how to use sepolgen-ifgen.

Thanks in advance.

#1 lore raw
Quoted 9 lines · Kim Lawson-Jenkins

Hi,

Can someone point me to some text on the Web that explains sepolgen-ifgen? When running audit2allow I received an error “could not open interface info” and I found a post stating that using sepolgen-ifgen might help solve this particular problem, but then I couldn’t find details about how to use sepolgen-ifgen.

You just run it when updating the policy headers (from selinux-policy-devel) and it regenerates the interface info in /var/lib/sepolgen. That info is then used by audit2allow (if passed -R) to try to match the audit messages against the interfaces so that it can generate calls to interfaces rather than just raw allow rules.

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.
#2 lore raw

Thanks for explanation and quick reply.

Kim

-----Original Message-----
From: Stephen Smalley [mailto:[email protected]]
Sent: Friday, April 25, 2008 12:49 PM
To: Kim Lawson-Jenkins
Cc: [email protected]
Subject: Re: sepolgen-ifgen

Quoted 9 lines · Kim Lawson-Jenkins

Hi,

Can someone point me to some text on the Web that explains sepolgen-ifgen? When running audit2allow I received an error "could not open interface info" and I found a post stating that using sepolgen-ifgen might help solve this particular problem, but then I couldn't find details about how to use sepolgen-ifgen.

You just run it when updating the policy headers (from selinux-policy-devel) and it regenerates the interface info in /var/lib/sepolgen. That info is then used by audit2allow (if passed -R) to try to match the audit messages against the interfaces so that it can generate calls to interfaces rather than just raw allow rules.

Signature · 9 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.