Re: Easy way to remove SELinux permissions?

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

 



On 09/10/2009 11:19 AM, Stephen Smalley wrote:
> On Thu, 2009-09-10 at 10:58 -0400, Daniel J Walsh wrote:
>> On 09/10/2009 01:58 AM, Sean Carlos wrote:
>>>
>>> At one point I performed a new Fedora install and restored my personal
>>> files before disabling SELinux which I don't need.
>>>
>>> As a result many files have permissions which include a dot at the end,
>>> e.g.:
>>>
>>> -rw-rw-r--.
>>>
>>> This causes havoc with many applications, i.e. gedit complains it cannot
>>> make a back-up file.
>> Open a bugzilla on this.  Having an extended attribute should not cause gedit to work to fail.
> 
> I think what is happening is this:  gedit has been instrumented to
> preserve the security.selinux attribute on files.  This works fine when
> SELinux is enabled, as SELinux applies a set of permission checks on
> setting its attributes and does not require a Linux capability /
> superuser access in doing so.  But when SELinux is disabled, setting any
> attribute in the security.* namespace is restricted to CAP_SYS_ADMIN and
> thus non-root use of gedit will fail on the setxattr() call with EPERM.
> 
I would say that gedit should check SELinux enfocing mode and if disabled continue to work.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux