[Bug 276965] tmpfs created with wrong permissions on top level
Date: Sun, 11 Feb 2024 06:49:04 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276965
Bug ID: 276965
Summary: tmpfs created with wrong permissions on top level
Product: Base System
Version: 14.0-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: d8zNeCFG@aon.at
Scenario:
- FreeBSD stable/14 at a727d8d7f50f06a83b391428b0fa8b6436f0e210 with minor
modifications
- Mounting a tmpfs over /var/db/pkg (or any other directory)
Result:
- The filesystem root's permissions are set to 1777
Expected result:
- The filesystem root's permissions should be inherited from the mount point's
permissions
Note:
- Maybe this is due to also having a /tmp autofs with 1777 permissions, and
these get mixed up with the additional tmpfs mount
Example session:
[0]# grep pkg /etc/fstab
auto /var/db/pkg mfs rw,noauto,-s=400m 0 0
[0]# df /var/db/pkg
Filesystem 1K-blocks Used Avail Capacity Mounted on
mizar.1/12/var/db/pkg 389454152 57652 389396500 0% /var/db/pkg
[0]# ll -a /var/db/pkg
total 57561
drwxr-xr-x 2 root wheel 3 Feb 10 11:15 .
drwxr-xr-x 20 root wheel 1024 Feb 11 07:29 ..
-rw-r--r-- 1 root wheel 137725952 Feb 10 11:15 local.sqlite
[0]# mount /var/db/pkg
[0]# ll -a /var/db/pkg
total 4
drwxrwxrwt 2 root wheel 0 Feb 11 07:31 .
drwxr-xr-x 20 root wheel 1024 Feb 11 07:29 ..
[0]# umount /var/db/pkg
[0]# ll -a /var/db/pkg
total 57561
drwxr-xr-x 2 root wheel 3 Feb 10 11:15 .
drwxr-xr-x 20 root wheel 1024 Feb 11 07:29 ..
-rw-r--r-- 1 root wheel 137725952 Feb 10 11:15 local.sqlite
[0]#
-- Martin
--
You are receiving this mail because:
You are the assignee for the bug.