* audit2allow -R
@ 2008-04-25 17:54 Stephen Smalley
2008-04-25 19:28 ` Daniel J Walsh
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Smalley @ 2008-04-25 17:54 UTC (permalink / raw)
To: Daniel J Walsh; +Cc: Karl MacMillan, selinux, Joshua Brindle
Per the man page, audit2allow -R is supposed to be the default.
And the code says:
parser.add_option("-R", "--reference", action="store_true", dest="refpolicy",
default=True, help="generate refpolicy style output")
which seems to confirm that. But running audit2allow w/o -R does not
generate interface calls.
On the next line, we have the opposite option:
parser.add_option("-N", "--noreference", action="store_false", dest="refpolicy",
default=False, help="do not generate refpolicy style output")
I'm wondering if the default= value there is clobbering the prior one
and needs to get updated too if we actually want this to be the default.
But before we do that, do we truly want to make it the default? How
confident are we in the interface matching?
--
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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: audit2allow -R
2008-04-25 17:54 audit2allow -R Stephen Smalley
@ 2008-04-25 19:28 ` Daniel J Walsh
2008-04-25 19:35 ` Stephen Smalley
0 siblings, 1 reply; 4+ messages in thread
From: Daniel J Walsh @ 2008-04-25 19:28 UTC (permalink / raw)
To: Stephen Smalley; +Cc: Karl MacMillan, selinux, Joshua Brindle
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Stephen Smalley wrote:
> Per the man page, audit2allow -R is supposed to be the default.
> And the code says:
> parser.add_option("-R", "--reference", action="store_true", dest="refpolicy",
> default=True, help="generate refpolicy style output")
>
> which seems to confirm that. But running audit2allow w/o -R does not
> generate interface calls.
>
> On the next line, we have the opposite option:
> parser.add_option("-N", "--noreference", action="store_false", dest="refpolicy",
> default=False, help="do not generate refpolicy style output")
>
> I'm wondering if the default= value there is clobbering the prior one
> and needs to get updated too if we actually want this to be the default.
>
> But before we do that, do we truly want to make it the default? How
> confident are we in the interface matching?
>
>
I do not think we want it the default. I have seen several times where
it gives back some bizarre interface. Usually because we don't have a
good match.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAkgSMOsACgkQrlYvE4MpobOwFACePYYg9A03oDQ2M00Ia/0fm6ma
PbYAn2HWo8KZyGpsKqPhj8/p/9mdCOUt
=Mi40
-----END PGP SIGNATURE-----
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: audit2allow -R
2008-04-25 19:28 ` Daniel J Walsh
@ 2008-04-25 19:35 ` Stephen Smalley
2008-04-25 19:38 ` Stephen Smalley
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Smalley @ 2008-04-25 19:35 UTC (permalink / raw)
To: Daniel J Walsh; +Cc: Karl MacMillan, selinux, Joshua Brindle
On Fri, 2008-04-25 at 15:28 -0400, Daniel J Walsh wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Stephen Smalley wrote:
> > Per the man page, audit2allow -R is supposed to be the default.
> > And the code says:
> > parser.add_option("-R", "--reference", action="store_true", dest="refpolicy",
> > default=True, help="generate refpolicy style output")
> >
> > which seems to confirm that. But running audit2allow w/o -R does not
> > generate interface calls.
> >
> > On the next line, we have the opposite option:
> > parser.add_option("-N", "--noreference", action="store_false", dest="refpolicy",
> > default=False, help="do not generate refpolicy style output")
> >
> > I'm wondering if the default= value there is clobbering the prior one
> > and needs to get updated too if we actually want this to be the default.
> >
> > But before we do that, do we truly want to make it the default? How
> > confident are we in the interface matching?
> >
> >
> I do not think we want it the default. I have seen several times where
> it gives back some bizarre interface. Usually because we don't have a
> good match.
Ok, so we should change the man page then.
--
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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: audit2allow -R
2008-04-25 19:35 ` Stephen Smalley
@ 2008-04-25 19:38 ` Stephen Smalley
0 siblings, 0 replies; 4+ messages in thread
From: Stephen Smalley @ 2008-04-25 19:38 UTC (permalink / raw)
To: Daniel J Walsh; +Cc: Karl MacMillan, selinux, Joshua Brindle
On Fri, 2008-04-25 at 15:35 -0400, Stephen Smalley wrote:
> On Fri, 2008-04-25 at 15:28 -0400, Daniel J Walsh wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Stephen Smalley wrote:
> > > Per the man page, audit2allow -R is supposed to be the default.
> > > And the code says:
> > > parser.add_option("-R", "--reference", action="store_true", dest="refpolicy",
> > > default=True, help="generate refpolicy style output")
> > >
> > > which seems to confirm that. But running audit2allow w/o -R does not
> > > generate interface calls.
> > >
> > > On the next line, we have the opposite option:
> > > parser.add_option("-N", "--noreference", action="store_false", dest="refpolicy",
> > > default=False, help="do not generate refpolicy style output")
> > >
> > > I'm wondering if the default= value there is clobbering the prior one
> > > and needs to get updated too if we actually want this to be the default.
> > >
> > > But before we do that, do we truly want to make it the default? How
> > > confident are we in the interface matching?
> > >
> > >
> > I do not think we want it the default. I have seen several times where
> > it gives back some bizarre interface. Usually because we don't have a
> > good match.
>
> Ok, so we should change the man page then.
and the EXAMPLES section could likely stand an overhaul too to reflect
the most typical modern usage first, and the others as alternative
forms.
--
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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-04-25 19:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-25 17:54 audit2allow -R Stephen Smalley
2008-04-25 19:28 ` Daniel J Walsh
2008-04-25 19:35 ` Stephen Smalley
2008-04-25 19:38 ` Stephen Smalley
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.