summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* tree-wide: do not work in assert() (#7271)Yu Watanabe2017-11-07
| | | | Fixes #7270.
* test-util: silence clang warning about unaligned accessZbigniew Jędrzejewski-Szmek2017-11-01
|
* util-lib: mark variable with _unused_ to silence clang warningZbigniew Jędrzejewski-Szmek2017-11-01
| | | | | | _unused_ means "the variable is meant to be possible unused and gcc will not generate a warning about it", which is exactly what we need here, since we're only declaring it for the side effect of _cleanup_.
* Remove a bunch of unused variablesZbigniew Jędrzejewski-Szmek2017-11-01
| | | | | gcc does not warn about those, because of the _cleanup_ usage. clang is smarter here.
* fs-util: small tweak in chase_symlinks()Lennart Poettering2017-10-04
| | | | | | | | If we follow an absolute symlink there's no need to prefix the path with a "/", since by definition it already has one. This helps suppressing double "/" in resolved paths containing absolute symlinks.
* elogind-detect-virt: refine hypervisor detection (#7171)Razvan Cojocaru2017-10-26
| | | | | | Continue to try to get more details about the actual underlying hypervisor with successive tests until none are available. This fixes issue #7165.
* logind: allow two very close error messages to be distinguishedZbigniew Jędrzejewski-Szmek2017-10-14
| | | | | | | | | | In https://bugzilla.redhat.com/show_bug.cgi?id=1486859 error messages appera: Sep 06 19:09:07 ld92.e.math.uh.edu audit[21482]: AVC avc: denied { read } for pid=21482 comm="elogind-logind" name="dbus-1" dev="tmpfs" ino=5548194 scontext=system_u:system_r:elogind_logind_t:s0 tcontext=unconfined_u:object_r:session_dbusd_tmp_t:s0 tclass=dir permissive=0 Sep 06 19:09:07 ld92.e.math.uh.edu elogind-logind[21482]: Failed to remove runtime directory /run/user/8664: Permission denied But it's not clear which of the two rm_rf's is the source. Let's make them different.
* util-lib: simplify kexec_loaded()Zbigniew Jędrzejewski-Szmek2017-10-15
|
* basic/env-util: don't relax unesaping of serialized environment stringsLubomir Rintel2017-10-11
| | | | We wrote them ourselves -- they shouldn't contain invalid sequences.
* basic/env-util: drop the validation when deserializing environmentLubomir Rintel2017-10-11
| | | | | | | | | | | | | The environment variables we've serialized can quite possibly contain characters outside the set allowed by env_assignment_is_valid(). In fact, my environment seems to contain a couple of these: * TERMCAP set by screen contains a '\x7f' character * BASH_FUNC_module%% variable has a '%' character in name Strict check of environment variables name and value certainly makes sense for unit files, but not so much for deserialization of values we already had in our environment.
* check_tree.pl: Added handling of xml files.Sven Eden2018-03-09
|
* check_tree.pl : Add handling of .gperf files.Sven Eden2018-03-09
|
* check_tree.pl: Do not allow commented out includes to be moved under our ↵Sven Eden2018-03-08
| | | | elogind block.
* Some minor cleanupsSven Eden2018-03-07
|
* Meson build system: Add missing '#' in masked blocksSven Eden2018-03-07
|
* Fix build on muslBjorn Pagen2018-03-07
| | | Before this fix, elogind did not compile on musl, as the header "musl-missing.h" tries to include a nonexistant header: "config.h". This patch fixes that. Musl compiles with no issues once this patch is administered.
* uaccess-command: [trivial] Differentiate apply vs reset error log messages.Arthur Taylor2018-03-07
| | | | Also change systemd to logind in a comment.
* Introduce elogind-uaccess-command to replace uaccess builtin.Arthur Taylor2018-03-07
| | | | | | | | | | | | | The uaccess udev builtin command is only used by logind and contains functionality only implemented in logind. As such, while we cannot write udev-builtin commands in elogind (not being udev), we can write standalone binaries and rewrite our udev rules to use them instead. This fixes the feature of granting users access to devices using a user ACL which is toggled only when the user is associated with an active session. Currently this functionality is half broken, as while the ACL is granted and revoked while VT-switching, it is not granted to new devices as they are plugged in. This issue is fixed by this commit.
* Close stdin, stdout and stderr on daemonizingAndreas Messer2018-01-31
|
* test/test-hexdecoct.c: Add include for musl_missin.h for strndupa().Sven Eden2018-01-25
| | | | | | shared/musl_missing.h: Rewrite strndupa() define to use x_ prefixed variables, so they won't shadow surronding variables of the same name.
* test/test-parse-util.c: Masked the test of strtod() with set germanSven Eden2018-01-25
| | | | | | | | locale to be only used with __GLIBC__. It seems that the strtod() function in stdlib.h from musl_libc does not heed the set locale. It fails with a german floating point number.
* test/test-sizeof.c: disable tests for missing typedefs in muslmaxice82018-01-24
|
* work-around usage of glibc-specific __register_atfork for musl systemsmaxice82018-01-24
| | | | | | | __register_atfork is glibc-specific but is roughly equivalent to pthread_atfork, add a definition of it on musl_missing.h and guard against the definition of __register_atfork on src/basic/process-util.c using #ifdef __GLIBC__
* shared/musl_missing.h: replace ifdef with if on HAVE_[__]SECURE_GETENVmaxice82018-01-24
| | | | | | | now meson defines itself on config.h HAVE_[__]SECURE_GETENV, instead of checking if it is defined, check if it set to false value. also undefine before redefining it to true.
* shared/musl_missing.h: replace ifdef HAVE_UTMP with if ENABLE_UTMPmaxice82018-01-24
| | | | | now meson defines if the feature is enabled or not, check if the feature is enabled
* Prep v235.3 : Fix cgroup hierarchy detection codeSven Eden2018-01-18
| | | | | | | There is no sub-grouping with elogind, so /sys/fs/cgroup/elogind is not needed to be mounted as cgroup fs in legacy mode. Fixes Bug https://bugs.gentoo.org/644834
* If elogind is just started, /sys/fs/cgroup/elogind might not exist, yet on ↵Sven Eden2018-01-15
| | | | legacy and hybrid systems.
* Prep 235: Don't allow multiple jobs being executed at the same timeSven Eden2018-01-14
|
* Prep 235: Removed orphaned headerSven Eden2018-01-11
|
* Prep 235: Make cgroups2 available, hybrid mode already works.Sven Eden2018-01-10
|
* Prep 235: Make elogind masks in sd-bus.h c90 compatible again.Sven Eden2018-01-09
|
* Prep 235: Enabled sd_peer_get_session() and sd_peer_get_owner_uid() to try ↵Sven Eden2018-01-09
| | | | to work with eloginds session id to user mapping.
* Prep 235: Enabled sd_bus_creds_get_slice(), sd_bus_creds_get_user_slice(), ↵Sven Eden2018-01-09
| | | | sd_peer_get_user_slice() and sd_pid_get_user_slice() to try to work with eloginds session id to user mapping.
* Prep 235: Enabled sd_peer_get_slice() and sd_pid_get_slice() to at least try ↵Sven Eden2018-01-09
| | | | to work. This is considered experimental.
* Prep 235: Although systemd slices are unsupported, make cg_path_get_slice() ↵Sven Eden2018-01-09
| | | | available, but in 'elogind jargon'
* src/systemd/meson.build: Fix add_install_script() callSven Eden2018-01-09
|
* Forgot to symlink _sdcommon.hSven Eden2017-12-15
|
* Prep 235: Implement an alternative approach for sd_pid_get_owner_uid(), ↵Sven Eden2017-12-13
| | | | making test-login to no longer fail.
* sd-bus.h, sd-daemon.h : MAke elogind masks ISO C90 compatible.Sven Eden2017-12-13
|
* basic/siphash24.c: Only disable -Wimplicit-fallthrough on gcc-7+Sven Eden2017-12-12
|
* Prep v234.4: ake all supportable API functions visibleSven Eden2017-12-12
| | | | (v234 addition).
* Prep v237.3: Make all supportable API functions visibleSven Eden2017-12-12
| | | | (v233 addition).
* Prep v232.6: Make all supportable API functions visibleSven Eden2017-12-12
| | | | (v232 addition).
* time-util: Disable explicit fallthrough wanring on gcc-7+Sven Eden2017-12-12
|
* Prep 229.9: Make all supportable API functions visible.Sven Eden2017-12-12
| | | | | | | | | | The process of cleaning up elogind, meaning to mask all bits that are unneeded by elogind, has been finished a while ago. It is therefore time to re-enable all previously masked API functions that elogind can support. This will make it easier for future developers to integrate elogind into their software where they already support systemd-login.
* basic/exec-utils:do_execute() : Remove "maybe unitialized" warningSven Eden2017-12-11
|
* Cleaned up orphaned filesSven Eden2017-12-11
|
* src/basic/meson.build: Prepare generate_cap_list fix for our migration scriptsSven Eden2017-12-11
|
* Fix and fortify cap-list generation and inlcude symlinking for gentoo build ↵Sven Eden2017-12-10
| | | | system.
* Meson build system: Recreate the symlinking of elogind/systemd/*.h headers ↵Sven Eden2017-12-08
| | | | into elogin/