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

[augeas-devel] Re: [Augeas] #26: ownership/mode of files gets altered



#26: ownership/mode of files gets altered
---------------------+------------------------------------------------------
  Reporter:  mfo     |       Owner:  lutter                
      Type:  defect  |      Status:  reopened              
  Priority:  major   |   Milestone:  next                  
 Component:  Augeas  |     Version:  0.3.1                 
Resolution:          |    Keywords:  ownership mode selinux
---------------------+------------------------------------------------------
Changes (by mfo):

  * status:  closed => reopened
  * resolution:  fixed =>
  * milestone:  0.3.2 => next

Comment:

 I don't remember explicitly testing the selinux properties when this bug
 got fixed, but I just noticed that with augeas 0.4.0 and 0.3.5, the
 selinux file type gets reset to it's default value when a file is saved by
 augeas:

 {{{
 root kissrv20:~# ls -Z /etc/sysconfig/sysstat
 -rw-r--r--  root root root:object_r:mysqld_etc_t
 /etc/sysconfig/sysstat
 root kissrv20:~# matchpathcon /etc/sysconfig/sysstat
 /etc/sysconfig/sysstat  system_u:object_r:etc_t
 root kissrv20:~# augtool
 augtool> set /files/etc/sysconfig/sysstat/HISTORY 14
 augtool> save
 Saved 1 file(s)
 augtool>
 root kissrv20:~# ls -Z /etc/sysconfig/sysstat
 -rw-r--r--  root root root:object_r:etc_t
 /etc/sysconfig/sysstat
 }}}

 Note that the selinux user (root / system_u) doesn't seem to get altered
 by augeas.

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/26#comment:3>
Augeas <http://augeas.net/>
a configuration API



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