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 709119 Details for
Bug 919385
Cannot use newrole with unprivileged user
[?]
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]
patch to fix problem. stop messing with bset
tmp.patch (text/plain), 1.35 KB, created by
Eric Paris
on 2013-03-12 19:11:23 UTC
(
hide
)
Description:
patch to fix problem. stop messing with bset
Filename:
MIME Type:
Creator:
Eric Paris
Created:
2013-03-12 19:11:23 UTC
Size:
1.35 KB
patch
obsolete
>diff --git a/policycoreutils/newrole/newrole.c b/policycoreutils/newrole/newrole.c >index 3753ef4..5b6dc74 100644 >--- a/policycoreutils/newrole/newrole.c >+++ b/policycoreutils/newrole/newrole.c >@@ -547,7 +547,7 @@ static int drop_capabilities(int full) > if (!uid) return 0; > > capng_setpid(getpid()); >- capng_clear(CAPNG_SELECT_BOTH); >+ capng_clear(CAPNG_SELECT_CAPS); > if (capng_lock() < 0) > return -1; > >@@ -558,7 +558,7 @@ static int drop_capabilities(int full) > } > if (! full) > capng_update(CAPNG_ADD, CAPNG_EFFECTIVE | CAPNG_PERMITTED, CAP_AUDIT_WRITE); >- return capng_apply(CAPNG_SELECT_BOTH); >+ return capng_apply(CAPNG_SELECT_CAPS); > } > #elif defined(NAMESPACE_PRIV) > /** >@@ -577,7 +577,7 @@ static int drop_capabilities(int full) > static int drop_capabilities(int full) > { > capng_setpid(getpid()); >- capng_clear(CAPNG_SELECT_BOTH); >+ capng_clear(CAPNG_SELECT_CAPS); > if (capng_lock() < 0) > return -1; > >@@ -588,8 +588,8 @@ static int drop_capabilities(int full) > return -1; > } > if (! full) >- capng_updatev(CAPNG_ADD, CAPNG_EFFECTIVE | CAPNG_PERMITTED, CAP_SYS_ADMIN , CAP_FOWNER , CAP_CHOWN, CAP_DAC_OVERRIDE, CAP_SETPCAP, -1); >- return capng_apply(CAPNG_SELECT_BOTH); >+ capng_updatev(CAPNG_ADD, CAPNG_EFFECTIVE | CAPNG_PERMITTED, CAP_SYS_ADMIN , CAP_FOWNER , CAP_CHOWN, CAP_DAC_OVERRIDE, -1); >+ return capng_apply(CAPNG_SELECT_CAPS); > } > > #else
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 919385
:
706980
|
709119
|
710206