[Bug 217574] PkgBase: runtime package removes sticky bit from /tmp

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Mar 6 06:07:47 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217574

            Bug ID: 217574
           Summary: PkgBase: runtime package removes sticky bit from /tmp
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: bsdports at kyle-evans.net

Created attachment 180554
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180554&action=edit
git(1) produced diff to set permissions  on /tmp after install of -runtime

Hi,

In deploying pkgbase on a lot of the machines I manage, I find that installing
the runtime pkg resets permissions on my /tmp and removes the sticky bit. This
is pretty unfriendly, unfortunately, for programs not run as root that create
temp files. This is reproducible just by installing the -runtime pkg on a
machine with /tmp at 1777 like in a standard install.

On one hand, pkg(8) probably shouldn't be overwriting permissions on a
directory that it didn't create. On the other hand, if /tmp doesn't exist (say,
installing into a new jail environment or something to that effect) then the
runtime pkg should probably be setting sensible permissions since it's not a
directory that had previously existed.

I'm attaching a patch to set sensible permissions (1777) on /tmp in accordance
with bsdconfig behavior to address the latter part of my previous paragraph,
which would alleviate this problem.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list