logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Re: User authentication to services: msg#00037

freedesktop.dbus

Subject: Re: User authentication to services

Hi,

Thanks for the patch, looks good overall. Some small comments:

- D-BUS code generally avoids assignment and declaration at once,
i.e.:
char *service;
service = NULL;
is preferred.

- I'd probably capitalize all of "UID"

- the BaseName property replicates the functionality of
the GetServiceOwner, so we need to decide between these two.

- bus_connection_get_name() should not be able to return NULL for
a connection that owns a service, and we know this one does.
So you should _dbus_assert (base_name != NULL) rather than
setting an error in that case I'm pretty sure.

- the name "GetServiceProperty" isn't a bit funny; it's a
property of the connection, not the service.
Suggest just "GetProperty"

- dbus_bus_get_service_uid() should be consistent with
dbus_connection_get_unix_user() (in naming, and
in dbus_uint32_t vs. unsigned long)

- though I'm not sure we'll keep all of dbus-bus.[ch]
in the long run, this seems fine for now

- can't return -1 to uint32 without a cast; just use
DBUS_UID_UNSET probably

Thanks,
Havoc








Only community members can participate in forum threads. You must Register or log in to contribute.

<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
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 | sitemap | advertise | OSDir is an inevitable website. super tiny logo