|
|
Choosing A Webhost: |
Re: [patch] Auth method for console users: msg#00080freedesktop.dbus
Hi, Some comments: - _dbus_is_console_user() args in prototype should align with function above it (get a copy of egtk-format-protos for emacs) - should not include unistd.h in dbus-userdb.c, only in dbus-sysdeps.c; suggest that all the stuff about /var/run be in sysdeps - dbus_is_console_user() has to indicate to its caller whether it ran out of memory; the OOM error has to be handled, not ignored by assuming the user is not a console user. - this isn't right, since you want to use the auth_on_user=true items if it is the console user, and =false items if it isn't, so you have to go over each item: + if (_dbus_is_console_user (uid)) + if (!add_list_to_client (&policy->console_rules, + client)) + goto nomem; + - in list_allows_user() you have the same basic issue - read over the man page for dbus-daemon on this; the arg "user" in "<policy user='foo'>" is a match rule. So similarly <policy console='true'> would be a match rule, i.e. the policy applies if you're on the console, and not otherwise - suggest s/auth_on_user/at_console/ or something like that - would it be interesting to allow user="hp" console="true" ? Havoc
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: New SE-DBUS patch, Colin Walters |
|---|---|
| Next by Date: | Re: dbus - comments requested, here's one, Tako Schotanus |
| Previous by Thread: | [patch] Auth method for console users, John (J5) Palmieri |
| Next by Thread: | dbus - comments requested, here's one, Luke Leighton |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home
| advertise | OSDir is
an inevitable website.
|