summaryrefslogtreecommitdiff
path: root/src/login/logind-acl.c
Commit message (Collapse)AuthorAge
* tree-wide: use path_hash_ops instead of string_hash_ops whenever we key by a ↵Lennart Poettering2018-05-30
| | | | | | path Let's make use of our new hash_ops!
* Prep v236 : Add missing SPDX-License-Identifier (5/9) src/loginSven Eden2018-03-26
|
* Rename formats-util.h to format-util.hZbigniew Jędrzejewski-Szmek2017-07-17
| | | | | | We don't have plural in the name of any other -util files and this inconsistency trips me up every time I try to type this file name from memory. "formats-util" is even hard to pronounce.
* Prep v229: Remove remaining emacs settings [4/6] src/loginSven Eden2017-05-17
|
* Prep v228: Add remaining updates from upstream (3/3)Sven Eden2017-04-26
| | | | | Apply remaining fixes and the performed move of utility functions into their own foo-util.[hc] files on the rest of elogind.
* shared: add formats-util.hRonny Chevalier2017-03-14
|
* util: rework cunescape(), improve error handlingLennart Poettering2017-03-14
| | | | | | | | | Change cunescape() to return a normal error code, so that we can distuingish OOM errors from parse errors. This also adds a flags parameter to control whether "relaxed" or normal parsing shall be done. If set no parse failures are generated, and the only reason why cunescape() can fail is OOM.
* remove unused includesThomas Hindoe Paaboel Andersen2015-02-23
| | | | | | This patch removes includes that are not used. The removals were found with include-what-you-use which checks if any of the symbols from a header is in use.
* tmpfiles: add 'a' type to set ACLsZbigniew Jędrzejewski-Szmek2015-01-22
|
* hashmap: introduce hash_ops to make struct Hashmap smallerMichal Schmidt2014-09-15
| | | | | | | | | It is redundant to store 'hash' and 'compare' function pointers in struct Hashmap separately. The functions always comprise a pair. Store a single pointer to struct hash_ops instead. systemd keeps hundreds of hashmaps, so this saves a little bit of memory.
* Small modernizationsZbigniew Jędrzejewski-Szmek2014-07-18
|
* Be more verbose when bind or listen failsZbigniew Jędrzejewski-Szmek2014-07-18
| | | | Also be more verbose in devnode_acl_all().
* logind: don't print error if devices vanish during ACL-initDavid Herrmann2014-04-02
| | | | | | If a device is unplugged while we initialize it, we will get ENOENT for ACL-init (and related stuff). We currently print errors then, which is misleading. Print a debug-message early and continue.
* core,logind,networkd: check for udev device initialization via enumeration ↵Lennart Poettering2013-12-18
| | | | | | | matches Instead of checking each device after we got it, check wuth an enumeration filter instead, to make it more efficient.
* core,logind,networkd: don't pick up devices from udev before they finished ↵Lennart Poettering2013-12-18
| | | | | | | udev initialization Managers shouldn't pick up the devices the manage before udev finished initialization, hence check explicitly for that.
* logind: port logind to libsystemd-busLennart Poettering2013-11-05
|
* logind: remove "if (0)" left-overKay Sievers2013-07-17
|
* logind-acl: use macrosTom Gundersen2013-07-17
| | | | Simplify by using FOREACH_DIRENT and _cleanup_closedir_ macros.
* logind: apply ACL's to "dead" device nodesTom Gundersen2013-07-16
| | | | | | | | | | Based on a patch by Kay Sievers. When a dead device nodes is tagged with "uaccess" using the static_node mechanism, it's ACL's are managed by logind in the same way as "live" device nodes. This allows in particular /dev/snd/{seq,timer} to cause modules to be loaded on-demand when accessed by a non-privileged user.
* relicense to LGPLv2.1 (with exceptions)Lennart Poettering2012-04-12
| | | | | | | | | | | | | | We finally got the OK from all contributors with non-trivial commits to relicense systemd from GPL2+ to LGPL2.1+. Some udev bits continue to be GPL2+ for now, but we are looking into relicensing them too, to allow free copy/paste of all code within systemd. The bits that used to be MIT continue to be MIT. The big benefit of the relicensing is that closed source code may now link against libsystemd-login.so and friends.
* put acl.la in 'if HAVE_ACL' and rename acl.[ch] to acl-util.[ch]Kay Sievers2012-04-11
|
* util: move ACL code into internal libraryKay Sievers2012-04-10
|
* logind: move logind into its own subdirectoryLennart Poettering2011-12-31