summaryrefslogtreecommitdiff
path: root/src/util.h
AgeCommit message (Collapse)AuthorFilesLines
2020-05-01util: Split out helper method for getting admin group IDsPhilip Withnall1-0/+4
This introduces one small functional change: if any of the groups in `EXTRA_ADMIN_GROUPS` can’t be resolved using `getgrnam()`, an error will now be thrown. Previously, it would be ignored. Other than that, this introduces no functional changes and is just intended as a code cleanup. Signed-off-by: Philip Withnall <withnall@endlessm.com>
2012-02-13Port daemon to GDBusMatthias Clasen1-5/+4
Based on work by Robert Ancell, https://bugs.freedesktop.org/show_bug.cgi?id=40364
2010-03-30Be more careful when copying the icon fileMatthias Clasen1-0/+2
Don't read the file in the root process, instead fork, become the calling user, then read the file and pipe it back to the parent process. This protects against callers passing e.g. "/etc/shadow" as filename.
2010-03-25Handle large numbers of groupsMatthias Clasen1-0/+4
2010-03-25Set loginuid properly when running commands on behalf of a userMatthias Clasen1-0/+4
This makes the audit log have the right information
2010-03-25Refactor logging into separate filesMatthias Clasen1-0/+36