diff options
| author | Changqing Li <changqing.li@windriver.com> | 2024-08-27 18:40:41 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-08-28 09:14:26 +0100 |
| commit | 2f46b6f27dfa3a9d5ad177900fcecfe64c3536f1 (patch) | |
| tree | 8445d619e70eeabe1f40544271f22da5105512d6 /meta/files | |
| parent | 2f8806deb7655b37d6f8d12ff54680d6acf7a298 (diff) | |
| download | poky-2f46b6f27dfa3a9d5ad177900fcecfe64c3536f1.tar.gz | |
bitbake.conf: drop VOLATILE_TMP_DIR, use FILESYSTEM_PERMS_TABLES instead
* Drop VOLATILE_TMP_DIR, use FILESYSTEM_PERMS_TABLES instead. By default,
FILESYSTEM_PERMS_TABLES ?= "files/fs-perms.txt \
files/fs-perms-volatile-log.txt \
files/fs-perms-volatile-tmp.txt"
it contains 'files/fs-perms-volatile-tmp.txt', which means volatile tmp
is enabled. User can disable volatile tmp by remove
'files/fs-perms-volatile-tmp.txt' from FILESYSTEM_PERMS_TABLES.
* If volatile tmp is disabled, both /tmp and /var/tmp are persistent
(From OE-Core rev: 8d1ae67b89c45f78162e070228086c7ef88c3264)
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/files')
| -rw-r--r-- | meta/files/fs-perms-volatile-tmp.txt | 38 | ||||
| -rw-r--r-- | meta/files/fs-perms.txt | 2 |
2 files changed, 38 insertions, 2 deletions
diff --git a/meta/files/fs-perms-volatile-tmp.txt b/meta/files/fs-perms-volatile-tmp.txt new file mode 100644 index 0000000000..26247acda8 --- /dev/null +++ b/meta/files/fs-perms-volatile-tmp.txt | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | # This file contains a list of files and directories with known permissions. | ||
| 2 | # It is used by the packaging class to ensure that the permissions, owners and | ||
| 3 | # group of listed files and directories are in sync across the system. | ||
| 4 | # | ||
| 5 | # The format of this file | ||
| 6 | # | ||
| 7 | #<path> <mode> <uid> <gid> <walk> <fmode> <fuid> <fgid> | ||
| 8 | # | ||
| 9 | # or | ||
| 10 | # | ||
| 11 | #<path> link <target> | ||
| 12 | # | ||
| 13 | # <path>: directory path | ||
| 14 | # <mode>: mode for directory | ||
| 15 | # <uid>: uid for directory | ||
| 16 | # <gid>: gid for directory | ||
| 17 | # <walk>: recursively walk the directory? true or false | ||
| 18 | # <fmode>: if walking, new mode for files | ||
| 19 | # <fuid>: if walking, new uid for files | ||
| 20 | # <fgid>: if walking, new gid for files | ||
| 21 | # <target>: turn the directory into a symlink point to target | ||
| 22 | # | ||
| 23 | # in mode, uid or gid, a "-" means don't change any existing values | ||
| 24 | # | ||
| 25 | # /usr/src 0755 root root false - - - | ||
| 26 | # /usr/share/man 0755 root root true 0644 root root | ||
| 27 | |||
| 28 | # Note: all standard config directories are automatically assigned "0755 root root false - - -" | ||
| 29 | |||
| 30 | # Documentation should always be corrected | ||
| 31 | |||
| 32 | # Items from base-files | ||
| 33 | # Links | ||
| 34 | ${localstatedir}/tmp link volatile/tmp | ||
| 35 | |||
| 36 | # Special permissions from base-files | ||
| 37 | # Set 1777 | ||
| 38 | ${localstatedir}/volatile/tmp 01777 root root false - - - | ||
diff --git a/meta/files/fs-perms.txt b/meta/files/fs-perms.txt index 61f0a6e26a..d2266c1b26 100644 --- a/meta/files/fs-perms.txt +++ b/meta/files/fs-perms.txt | |||
| @@ -46,7 +46,6 @@ ${includedir} 0755 root root true 0644 root root | |||
| 46 | # Links | 46 | # Links |
| 47 | ${localstatedir}/run link /run | 47 | ${localstatedir}/run link /run |
| 48 | ${localstatedir}/lock link /run/lock | 48 | ${localstatedir}/lock link /run/lock |
| 49 | ${localstatedir}/tmp link volatile/tmp | ||
| 50 | 49 | ||
| 51 | /home 0755 root root false - - - | 50 | /home 0755 root root false - - - |
| 52 | /srv 0755 root root false - - - | 51 | /srv 0755 root root false - - - |
| @@ -56,7 +55,6 @@ ${localstatedir}/local 0755 root root false - - - | |||
| 56 | # Special permissions from base-files | 55 | # Special permissions from base-files |
| 57 | # Set 1777 | 56 | # Set 1777 |
| 58 | /tmp 01777 root root false - - - | 57 | /tmp 01777 root root false - - - |
| 59 | ${localstatedir}/volatile/tmp 01777 root root false - - - | ||
| 60 | 58 | ||
| 61 | # Set 0700 | 59 | # Set 0700 |
| 62 | ${ROOT_HOME} 0700 root root false - - - | 60 | ${ROOT_HOME} 0700 root root false - - - |
