Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 252703 Details for
Bug 265601
sys-apps/openrc does not cleanup pam_mktemp-created temporary directories
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git am-compatible patch for the issue
0001-Allow-cleaning-up-of-pam_mktemp-based-temporary-dire.patch (text/plain), 1.23 KB, created by
Diego Elio Pettenò (RETIRED)
on 2010-10-31 18:43:22 UTC
(
hide
)
Description:
git am-compatible patch for the issue
Filename:
MIME Type:
Creator:
Diego Elio Pettenò (RETIRED)
Created:
2010-10-31 18:43:22 UTC
Size:
1.23 KB
patch
obsolete
>From c032aea07293bba2e5a9596fb33b38b6b2135a66 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@gmail.com> >Date: Sun, 31 Oct 2010 19:39:41 +0100 >Subject: [PATCH] Allow cleaning up of pam_mktemp-based temporary directories. > >This was blacklisted before, so the .private directories never had their >content cleaned up, even if WIPE_TMP was set to yes. >--- > init.d/bootmisc.in | 8 ++++++-- > 1 files changed, 6 insertions(+), 2 deletions(-) > >diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in >index 9708a24..9a3b1fa 100644 >--- a/init.d/bootmisc.in >+++ b/init.d/bootmisc.in >@@ -35,6 +35,12 @@ cleanup_tmp_dir() > # Faster than find > rm -rf -- [^ajlq\.]* > >+ # pam_mktemp creates a .private directory within which >+ # each user gets a private directory with immutable >+ # bit set; remove the immutable bit before trying to >+ # remove it. >+ [ -d /tmp/.private ] && chattr -R -a /tmp/.private >+ > find $startopts ! -name . \ > ! -path "./lost+found" \ > ! -path "./lost+found/*" \ >@@ -48,8 +54,6 @@ cleanup_tmp_dir() > ! -path "./aquota.group/*" \ > ! -path "./journal" \ > ! -path "./journal/*" \ >- ! -path "./.private" \ >- ! -path "./.private/*" \ > -exec rm -rf {} \; > eend 0 > else >-- >1.7.3.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 265601
: 252703