Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 313329 Details for
Bug 405975
sys-app/dbus with libaudit support causes crash on selinux
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
See comment 9 for more info
dbus-1.5.12-libaudit.patch (text/plain), 1.40 KB, created by
Hinnerk van Bruinehsen
on 2012-05-27 21:52:00 UTC
(
hide
)
Description:
See comment 9 for more info
Filename:
MIME Type:
Creator:
Hinnerk van Bruinehsen
Created:
2012-05-27 21:52:00 UTC
Size:
1.40 KB
patch
obsolete
>diff -ur dbus-1.5.12.orig/bus/selinux.c dbus-1.5.12/bus/selinux.c >--- dbus-1.5.12.orig/bus/selinux.c 2012-02-08 20:36:10.000000000 +0100 >+++ dbus-1.5.12/bus/selinux.c 2012-05-27 23:02:39.487187070 +0200 >@@ -1053,7 +1053,8 @@ > int rc; > > capng_clear (CAPNG_SELECT_BOTH); >- capng_update (CAPNG_ADD, CAPNG_EFFECTIVE | CAPNG_PERMITTED, >+ // | causes rc to get a value of -9, & works (rc==0) >+ capng_update (CAPNG_ADD, CAPNG_EFFECTIVE & CAPNG_PERMITTED, > CAP_AUDIT_WRITE); > rc = capng_change_id (uid, gid, CAPNG_DROP_SUPP_GRP); > if (rc) >diff -ur dbus-1.5.12.orig/dbus/dbus-sysdeps-util-unix.c dbus-1.5.12/dbus/dbus-sysdeps-util-unix.c >--- dbus-1.5.12.orig/dbus/dbus-sysdeps-util-unix.c 2012-03-27 15:48:46.000000000 +0200 >+++ dbus-1.5.12/dbus/dbus-sysdeps-util-unix.c 2012-05-27 23:02:39.478187071 +0200 >@@ -118,11 +118,15 @@ > dup2 (dev_null_fd, 0); > dup2 (dev_null_fd, 1); > >- s = _dbus_getenv ("DBUS_DEBUG_OUTPUT"); >+ /* FIXME - dup2 (dev_null_fd, 2); leads to the problem, that the pid pipe cannot be found: >+ * most likely the fd of the pidfile gets mangled >+ * >+ s = _dbus_getenv ("DBUS_DEBUG_OUTPUT"); > if (s == NULL || *s == '\0') > dup2 (dev_null_fd, 2); > else > _dbus_verbose ("keeping stderr open due to DBUS_DEBUG_OUTPUT\n"); >+ */ > } > > if (!keep_umask)
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 405975
:
312881
|
312883
|
312885
| 313329 |
313389