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 221981 Details for
Bug 287941
Wrong permissions on /dev/dsp when starting KDE in runlevel 3
[?]
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.
suggested yet another wrapper program for the user's session
ck-xinit-session.c (text/plain), 1.49 KB, created by
Nalin Dahyabhai
on 2007-10-09 22:09:02 UTC
(
hide
)
Description:
suggested yet another wrapper program for the user's session
Filename:
MIME Type:
Creator:
Nalin Dahyabhai
Created:
2007-10-09 22:09:02 UTC
Size:
1.49 KB
patch
obsolete
>/* > * Copyright Red Hat, same license as the rest of xorg-x11-xinit. > * FIXME: replace with a real copyright/license statement. > * > * Gate a process inside of a ConsoleKit session. > * > * We want to do this instead of doing it from inside of xinit because at the > * point we're doing it, we've already added the user's UID to the list of > * allowed clients for the X server, so the ConsoleKit daemon, which assumes > * the user's UID, will be able to connect without needing to be able to read > * the user's X cookies. > */ > >#include <sys/types.h> >#include <sys/wait.h> >#include <paths.h> >#include <stdlib.h> >#include <syslog.h> >#include <unistd.h> >#include <ck-connector.h> > >int >main(int argc, char **argv) >{ > CkConnector *ckc = NULL; > DBusError error; > const char *shell; > pid_t pid; > int status; > > ckc = ck_connector_new(); > if (ckc != NULL) { > dbus_error_init (&error); > if (ck_connector_open_session(ckc, &error)) { > pid = fork(); > switch (pid) { > case -1: > syslog(LOG_ERR, "error forking child"); > break; > case 0: > setenv("XDG_SESSION_COOKIE", > ck_connector_get_cookie(ckc), 1); > break; > default: > waitpid(pid, &status, 0); > exit(status); > break; > } > } else { > syslog(LOG_ERR, "error connecting to console-kit"); > } > } else { > syslog(LOG_ERR, "error setting up to connect to console-kit"); > } > if (argc > 1) { > execvp(argv[1], argv + 1); > } else { > shell = getenv("SHELL"); > if (shell == NULL) { > shell = _PATH_BSHELL; > } > execlp(shell, shell, NULL); > } > _exit(1); >}
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 Raw
Actions:
View
Attachments on
bug 287941
:
200071
| 221981 |
221991