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

Augeas trac at fedorahosted.org
Fri Mar 6 10:46:09 UTC 2009


#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 at kissrv20:~# ls -Z /etc/sysconfig/sysstat
 -rw-r--r--  root root root:object_r:mysqld_etc_t
 /etc/sysconfig/sysstat
 root at kissrv20:~# matchpathcon /etc/sysconfig/sysstat
 /etc/sysconfig/sysstat  system_u:object_r:etc_t
 root at kissrv20:~# augtool
 augtool> set /files/etc/sysconfig/sysstat/HISTORY 14
 augtool> save
 Saved 1 file(s)
 augtool>
 root at 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




More information about the augeas-devel mailing list