Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 261621 - sys-apps/openrc-9999 improvement for bootmisc script - permissions on /tmp
Summary: sys-apps/openrc-9999 improvement for bootmisc script - permissions on /tmp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-07 22:12 UTC by Daniel Black (RETIRED)
Modified: 2009-06-15 11:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Black (RETIRED) gentoo-dev 2009-03-07 22:12:50 UTC
the bootmisc init script adds the +t permissions. would be nice if it could add a+rwX too. I'm doing something odd like putting /tmp on a newly created crypt partition.

# more /etc/conf.d/dmcrypt
target=crypt-tmp
source='/dev/vg/tmp'
options='-d /dev/urandom'
pre_mount='/sbin/mkreiserfs -f -f ${dev}'


I don't know how portable this is but you get the idea.
--- /tmp/bootmisc.old   2009-03-08 09:08:49.000000000 +1100
+++ /etc/init.d/bootmisc        2009-03-07 18:27:53.000000000 +1100
@@ -24,7 +24,7 @@
                mkdir -p "${dir}" || return $?
        fi
        dir_writeable "${dir}" || return 1
-       chmod +t "${dir}"
+       chmod a+rwt "${dir}"
        cd "${dir}"
        if yesno ${wipe_tmp:-${WIPE_TMP:-yes}}; then
                ebegin "Wiping ${dir} directory"
Comment 2 Matthias Schwarzott gentoo-dev 2009-06-15 11:08:00 UTC
Marking fixed, as this is fixed in git-repo and openrc-9999 will pull it.