Re: [patch] selinux: handle files opened with flags 3 by checking ioctl permission

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2008-03-17 at 18:19 -0400, Eric Paris wrote:
> On Tue, 2008-03-18 at 09:15 +1100, James Morris wrote:
> > On Mon, 17 Mar 2008, Eric Paris wrote:
> > 
> > > 
> > > On Mon, 2008-03-17 at 08:55 -0400, Stephen Smalley wrote:
> > > > On Mon, 2008-03-17 at 08:41 +1100, James Morris wrote:
> > > > > On Fri, 14 Mar 2008, Stephen Smalley wrote:
> > > > > 
> > > > > > Alternatively, we could default to returning FILE__IOCTL from
> > > > > > file_to_av() if the f_mode has neither FMODE_READ nor FMODE_WRITE, and
> > > > > > thus check ioctl permission on exec or transfer, thereby validating such
> > > > > > descriptors early as with normal r/w descriptors and catching leaks of
> > > > > > them prior to attempted usage.
> > > > > 
> > > > > I think this sounds like a good plan.
> > > > 
> > > > Handle files opened with flags 3 by checking ioctl permission.
> > > > 
> > > > Signed-off-by:  Stephen Smalley <sds@xxxxxxxxxxxxx>
> > > 
> > > Acked-by: Eric Paris <eparis@xxxxxxxxxx>
> > 
> > Fixes the problem I was seeing.  Applied to for-akpm.
> 
> Are you at least now seeing a FILE__IOCTL avc for mdadm?  If not why
> would mdadm have that permission for /dev/null?

ioctl permission is widely granted due to the common use of ioctl for
probing the object type (isatty).  The common permission set macros
usually include it whenever they include read or write.

-- 
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@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux