Mantis - lsof
Viewing Issue Advanced Details
4864 packaging major always 2011-11-16 11:22 2011-11-17 10:40
abone28  
dam  
normal  
closed  
fixed  
none    
none  
0004864: lsof have invalid group and no setgid bit
As of version 4.84 currently available in dublin and unstable lsof binaries belong to group bin instead of sys and don't have setgit bit set. This makes lsof unusable from regular user.
pkgmap in the package contains

1 f none /opt/csw/bin/sparcv8/lsof 0755 root bin ...
1 f none /opt/csw/bin/sparcv8plus/lsof 0755 root bin ...
1 f none /opt/csw/bin/sparcv9/lsof 0755 root bin ...

but should be

1 f none /opt/csw/bin/sparcv8/lsof 2755 root sys ...
1 f none /opt/csw/bin/sparcv8plus/lsof 2755 root sys ...
1 f none /opt/csw/bin/sparcv9/lsof 2755 root sys ...

I'm attaching patch that works for me, but you need to test it on x86. I don't have x86 solaris box.
? file icon lsof-setgid.patch [^] (374 bytes) 2011-11-16 11:22
Issue History
2011-11-16 11:22 abone28 New Issue
2011-11-16 11:22 abone28 File Added: lsof-setgid.patch
2011-11-16 11:56 dam Status new => assigned
2011-11-16 11:56 dam Assigned To => dam
2011-11-16 15:45 dam Note Added: 0009415
2011-11-16 20:27 dam Note Added: 0009416
2011-11-16 20:27 dam Status assigned => feedback
2011-11-17 02:59 abone28 Note Added: 0009417
2011-11-17 10:40 dam Note Added: 0009418
2011-11-17 10:40 dam Status feedback => closed
2011-11-17 10:40 dam Resolution open => fixed

Notes
(0009415)
dam   
2011-11-16 15:45   
This has been fixed in the Makefile:
  http://sourceforge.net/apps/trac/gar/changeset/16202 [^]
New packages are rebuilding now.
(0009416)
dam   
2011-11-16 20:27   
Updated packages will show up shortly on
  http://buildfarm.opencsw.org/experimental.html#lsof [^]
Please verify if this fixes your issue.

I set 2755 on /opt/csw/bin/lsof, which is a hardlink to isaexec and permissions are not applied to hardlinks.
(0009417)
abone28   
2011-11-17 02:59   
I've checked package version lsof-4.84,REV=2011.11.16-SunOS5.10-sparc-CSW.pkg.gz from experimental. Works for me. Thank you!
(0009418)
dam   
2011-11-17 10:40   
Updated lsof-4.84,REV=2011.11.16 released to unstable/.