[bug-notifications] [cswclassutils 0003685]: cswpreserveconf

Mantis Bug Tracker noreply at opencsw.org
Thu May 28 15:25:07 CEST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://www.opencsw.org/mantis/view.php?id=3685 
====================================================================== 
Reported By:                ja
Assigned To:                bonivart
====================================================================== 
Project:                    cswclassutils
Issue ID:                   3685
Category:                   packaging
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2009-05-23 11:39 CEST
Last Modified:              2009-05-28 15:25 CEST
====================================================================== 
Summary:                    cswpreserveconf
Description: 
Config files handled with the class cswpreserveconf have always the
ownerships root:other and not the desired ownership, which is specified for
the .CSW file.

Example:

In CSWnagios.prototype

f cswpreserveconf /opt/csw/nagios/etc/cgi.cfg.CSW 0664 nagios nagios

results in

-rw-r--r--   1 root     other      10695 May 22 22:19 cgi.cfg
-rw-rw-r--   1 nagios   nagios     10695 Mar 20 22:26 cgi.cfg.CSW

and not as expected in 

-rw-r--r--   1 nagios   nagios      10695 May 22 22:19 cgi.cfg
====================================================================== 

---------------------------------------------------------------------- 
 (0006184) bonivart (manager) - 2009-05-23 12:25
 http://www.opencsw.org/mantis/view.php?id=3685#c6184 
---------------------------------------------------------------------- 
Also the permissions are from umask, not from .CSW file. 

---------------------------------------------------------------------- 
 (0006185) bonivart (manager) - 2009-05-23 12:26
 http://www.opencsw.org/mantis/view.php?id=3685#c6185 
---------------------------------------------------------------------- 
Phil is looking into this, I'm pretty sure it concerns cswcpsampleconf as
well. 

---------------------------------------------------------------------- 
 (0006216) bonivart (manager) - 2009-05-28 15:25
 http://www.opencsw.org/mantis/view.php?id=3685#c6216 
---------------------------------------------------------------------- 
The problem is that the copy operation occurs before proper
ownership/permissions are set (verification stage for each class), thus
even a preserve copy only yields a file with default
ownership/permissions.

One possible solution (not verified) is to locate the pkgmap during
install and grep it for the correct ownership/permissions and apply them to
the copy. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-23 11:39 ja             New Issue                                    
2009-05-23 12:24 bonivart       Status                   new => assigned     
2009-05-23 12:24 bonivart       Assigned To               => bonivart        
2009-05-23 12:25 bonivart       Note Added: 0006184                          
2009-05-23 12:26 bonivart       Note Added: 0006185                          
2009-05-28 15:25 bonivart       Note Added: 0006216                          
======================================================================




More information about the bug-notifications mailing list