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#9183 - libalpm creates /tmp with incorrect permissions
Attached to Project:
Pacman
Opened by Jaroslaw Swierczynski (swiergot) - Sunday, 13 January 2008, 08:53 GMT
Last edited by Xavier (shining) - Monday, 14 January 2008, 23:36 GMT
Opened by Jaroslaw Swierczynski (swiergot) - Sunday, 13 January 2008, 08:53 GMT
Last edited by Xavier (shining) - Monday, 14 January 2008, 23:36 GMT
|
DetailsDuring mkarchroot, I get the following message from pacman while installing filesystem package:
warning: directory permissions differ on tmp/ filesystem: 755 package: 1777 I guess it's either pacman or libalpm that creates this directory earlier. I didn't search too much but found this: (lib/libalpm/trans.c:488) snprintf(tmpdir, PATH_MAX, "%stmp/", root); if(stat(tmpdir, &buf)) { _alpm_makepath(tmpdir); } (lib/libalpm/util.c:199) if(mkdir(full, 0755)) { The solution would be to fix permissions either in libalpm or filesystem package post-install script. |
This task depends upon
Closed by Xavier (shining)
Monday, 14 January 2008, 23:36 GMT
Reason for closing: Fixed
Additional comments about closing: last patch was applied to git, commit 801a2680.
Monday, 14 January 2008, 23:36 GMT
Reason for closing: Fixed
Additional comments about closing: last patch was applied to git, commit 801a2680.
http://archlinux.org/pipermail/pacman-dev/2008-January/010834.html
So right, it should probably be fixed in libalpm instead.
But then, why does the filesystem package install the /tmp/ directory, since it's always created by pacman first?
See attached patch.
But it still bothers me a bit that the /tmp/ directory is always set up by pacman, and not filesystem package.
I'll just let Dan or Aaron decide which solution they prefer.
We also need to address the other times /tmp may be created, such as the creation of a cachedir (even if this is extremely unlikely, we still need to ensure we always create /tmp correctly).
The first patch was the one that deleted /tmp/. Having a scriptlet leave files in /tmp/ for the user sounds weird to me, I wouldn't think about doing such things.
Anyway, I am fine with the last patch, it's fine too. Just that the /tmp/ directory could be removed from filesystem package, it wouldn't make any difference.
And yes, I forgot about cachedir, I will have a look.