Re: refpolicy HEAD, Debian, ioctl on xconsole by syslogd

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

 



On Fri, 2007-12-14 at 12:51 +0100, Václav Ovsík wrote:
> On Tue, Dec 04, 2007 at 10:04:21AM -0500, Christopher J. PeBenito wrote:
> > On Tue, 2007-12-04 at 12:17 +0100, Václav Ovsík wrote:
> > > when starting syslogd by init script:
> > > 
> > > audit(1196761642.698:3): avc:  denied { ioctl } for  pid=1353
> > > comm="syslogd" name="xconsole" dev=tmpfs ino=3703
> > > scontext=system_u:system_r:syslogd_t:s0
> > > tcontext=system_u:object_r:xconsole_device_t:s0 tclass=fifo_file 
> > > 
> > > attached patch, that xserver_rw_console() gives ioctl permission.
> > > Can be merged?
> > 
> > I switched it to use rw_fifo_file_perms instead.
> 
> I found another problem in dependency of the logging module on the
> xserver module. When the xserver module is not used (policy without this
> module), access to xconsole is denied. Problem is, that pipe
> /dev/xconsole is created by syslogd startup script, but it's type
> (context) belongs to the xserver module. That is if no X Window System
> is installed (thus no policy module for it), syslogd startup script
> creates /dev/xconsole, but can't do labeling and access to
> /dev/xconsole.
> 
> I have no idea what to write into optional-else block. Maybe to use some
> dummy type, allow syslogd_t to rw to this dummy type. But how to write
> context for /dev/xconsole with this dummy type optionaly? That is, entry
> for /dev/xconsole, valid only when there is no entry from other
> module (xserver). Impossible?
> 
> Move xconsole_device_t staff from xserver into logging?
> 
> Any idea how to solve this?

This came up before, and I was under the impression that it had been
fixed.  I guess not.  You can see the previous thread:

http://marc.info/?l=selinux&m=115816229022334&w=2

-- 
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150



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