Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: [patch] Auth method for console users: msg#00080

freedesktop.dbus

Subject: Re: [patch] Auth method for console users

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>
Google Custom Search

Free Magazines

Cisco News
Receive 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

Navigation

Home | advertise | OSDir is an inevitable website. super tiny logo