Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 630057 Details for
Bug 868330
ecryptfs-migrate-home fails when run under sudo
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
suggested patch
ecryptfs-sudo.patch (text/plain), 852 bytes, created by
Martin Wilck
on 2012-10-19 14:17:29 UTC
(
hide
)
Description:
suggested patch
Filename:
MIME Type:
Creator:
Martin Wilck
Created:
2012-10-19 14:17:29 UTC
Size:
852 bytes
patch
obsolete
>--- /tmp/ecryptfs-setup-private 2012-10-19 16:12:34.293688175 +0200 >+++ /usr/bin/ecryptfs-setup-private 2012-10-19 16:04:48.534025685 +0200 >@@ -427,7 +427,16 @@ > else > sig_opt="ecryptfs_sig=$sig" > fi >+ # If we are running under sudo, the session keyring may not link >+ # to root's user keyring, where the auth tok is stored >+ # Need to join root's keyring, otherwise the mount will fail >+ if [ "$(keyctl describe @s | awk '{ print $3; }')" -ne 0 ]; then >+ _KEK_="keyctl session _uid.0" >+ else >+ _KEK_= >+ fi > # Do the mount, and provide some helpful symlinks >+ $_KEK_ \ > mount -i -t ecryptfs -o "rw,$sig_opt,ecryptfs_cipher=$CIPHER,ecryptfs_key_bytes=$KEYBYTES" "$CRYPTDIR" "$MOUNTPOINT" || error "Could not mount" > ln -sf $ECRYPTFS_DIR/$USER/.ecryptfs $MOUNTPOINT/.ecryptfs > ln -sf $ECRYPTFS_DIR/$USER/.$PRIVATE_DIR $MOUNTPOINT/.$PRIVATE_DIR
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 868330
: 630057