Historical bug tracker for the Pacman package manager.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
FS#17533 - [makepkg] Remove setgid from pkgdir
Attached to Project:
Pacman
Opened by Jan Alexander Steffens (heftig) - Thursday, 17 December 2009, 03:30 GMT
Last edited by Allan McRae (Allan) - Tuesday, 30 March 2010, 05:02 GMT
Opened by Jan Alexander Steffens (heftig) - Thursday, 17 December 2009, 03:30 GMT
Last edited by Allan McRae (Allan) - Tuesday, 30 March 2010, 05:02 GMT
|
DetailsSummary and Info:
Makepkg should remove setgid from pkgdir before building. Otherwise, the flag will be carried over to subdirs and eventually into the package. Steps to Reproduce: 1. Create a directory with permissions 2755 2. Put a PKGBUILD in it (linuxigd from AUR in my case) 3. Build using makepkg 4. Observe directory permissions in resulting package ---- In the case of linuxigd, pkg/etc/rc.d and pkg/etc/conf.d will now have 2755 permissions |
This task depends upon
Closed by Allan McRae (Allan)
Tuesday, 30 March 2010, 05:02 GMT
Reason for closing: Implemented
Additional comments about closing: http://projects.archlinux.org/pacman.git /commit/?id=22331fda
Tuesday, 30 March 2010, 05:02 GMT
Reason for closing: Implemented
Additional comments about closing: http://projects.archlinux.org/pacman.git /commit/?id=22331fda
$ groups
wheel video audio users
$ ls -ld .
drwxr-sr-x 4 user users 4.0K Dec 17 00:03 .
$ umask 0022; install -dm0755 pkg src; ls -ld pkg src
drwxr-sr-x 2 user users 4.0K Dec 17 00:03 pkg
drwxr-sr-x 2 user users 4.0K Dec 17 00:03 src
$ chmod 0755 pkg src; ls -ld pkg src
drwxr-sr-x 2 user users 4.0K Dec 17 00:03 pkg
drwxr-sr-x 2 user users 4.0K Dec 17 00:04 src
So the fix is what he proposed:
$ chmod a=-s pkg src; ls -ld pkg src
drwxr-xr-x 2 user users 4.0K Dec 17 00:04 pkg
drwxr-xr-x 2 user users 4.0K Dec 17 00:04 src
http://mailman.archlinux.org/pipermail/pacman-dev/2010-January/010348.html