On Mon, Oct 12, 2009 at 03:23:33PM -0400, Sebastien Roy wrote:
> On Mon, 2009-10-12 at 15:20 -0400, Anurag S. Maskey wrote:
> > Sebastien Roy wrote:
> > > On Mon, 2009-10-12 at 15:05 -0400, Anurag S. Maskey wrote:
> > >   
> > >> Sebastien Roy wrote:
> > >>     
> > >>> On Fri, 2009-10-09 at 11:44 -0400, Anurag S. Maskey wrote:
> > >>>   
> > >>>       
> > >>>> changing permissions and group of flowadm.conf and flowprop.conf
> > >>>>
> > >>>>         http://zhadum.east/export/ws/am223141/temp/nwam1-work/webrev/  
> > >>>>   
> > > One more comment:
> > >
> > > usr/src/pkgdefs/SUNWcnetr/postinstall
> > >
> > > * You have a for loop with a single constant argument...  You don't need
> > > a loop for that.
> > >   
> > Thanks Seb.  I've removed the loop in the postinstall script.
> 
> Why not simply add secobj.conf to DLADM_FILES?  The existing for loop at
> 202 will result in the right chgrp operation.
> 
> This can also be cleaned up a little by implying that all DLADM_FILES
> are relative to DLADM_PATH.  For example:
> 
> DLADM_PATH="${PKG_INSTALL_ROOT}/etc/dladm"
> DLADM_FILES="datalink.conf flowadm.conf flowprop.conf secobj.conf"
> for file in ${DLADM_FILES}; do
>         chgrp netadm ${DLADM_PATH}/$file
> done
> chmod 660 ${DLADM_PATH}/secobj.conf
> 
> On a related note, how will this get done with IPS?

My understanding is that packaging changes will get applied on upgrade;
that is, a package file is considered in need of upgrade even if the only
change is to its uid/gid/mode, and the installed file is updated accordingly.

-renee

Reply via email to