summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* docs: add missing dashLennart Poettering2020-04-091-1/+1
|
* Merge pull request #15352 from poettering/user-group-name-valdity-reworkLennart Poettering2020-04-0930-259/+517
|\ | | | | user/group name validity rework
| * catalog: add entry for SD_MESSAGE_UNSAFE_USER_NAMELennart Poettering2020-04-081-0/+23
| |
| * docs: hook up the new USER_NAMES document everywhereLennart Poettering2020-04-084-8/+18
| | | | | | | | | | (Also correct the set of names we accept in User=, which was forgotten to be updated in ae480f0b09aec815b64579bb1828ea935d8ee236.
| * docs: add a longer document explaining our rules on user/group namesLennart Poettering2020-04-081-0/+169
| |
| * user-util: rework how we validate user namesLennart Poettering2020-04-0823-245/+302
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reworks the user validation infrastructure. There are now two modes. In regular mode we are strict and test against a strict set of valid chars. And in "relaxed" mode we just filter out some really obvious, dangerous stuff. i.e. strict is whitelisting what is OK, but "relaxed" is blacklisting what is really not OK. The idea is that we use strict mode whenver we allocate a new user (i.e. in sysusers.d or homed), while "relaxed" mode is when we process users registered elsewhere, (i.e. userdb, logind, …) The requirements on user name validity vary wildly. SSSD thinks its fine to embedd "@" for example, while the suggested NAME_REGEX field on Debian does not even allow uppercase chars… This effectively liberaralizes a lot what we expect from usernames. The code that warns about questionnable user names is now optional and only used at places such as unit file parsing, so that it doesn't show up on every userdb query, but only when processing configuration files that know better. Fixes: #15149 #15090
| * userdbctl: drop redundant user name validity checkLennart Poettering2020-04-081-6/+5
| | | | | | | | | | | | | | The userdb_by_name() invocation immediately following does the same check anyway, no need to do this twice. (Also, make sure we exit the function early on failure)
* | Merge pull request #15318 from fbuihuu/inherit-umask-for-user-unitsLennart Poettering2020-04-094-4/+35
|\ \ | | | | | | pid1: by default make user units inherit their umask from the user ma…
| * | pid1: by default make user units inherit their umask from the user managerFranck Bui2020-04-094-4/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch changes the way user managers set the default umask for the units it manages. Indeed one can expect that if user manager's umask is redefined through PAM (via /etc/login.defs or pam_umask), all its children including the units it spawns have their umask set to the new value. Hence make user units inherit their umask value from their parent instead of the hard coded value 0022 but allow them to override this value via their unit file. Note that reexecuting managers with 'systemctl daemon-reexec' after changing UMask= has no effect. To take effect managers need to be restarted with 'systemct restart' instead. This behavior was already present before this patch. Fixes #6077.
* | | Merge pull request #15332 from keszybz/coredump-filterLennart Poettering2020-04-0919-5/+396
|\ \ \ | | | | | | | | CoredumpFilter=
| * | | manager: also log at debug level failure to read oom_score_adjZbigniew Jędrzejewski-Szmek2020-04-091-2/+9
| | | |
| * | | manager: add CoredumpFilter= settingZbigniew Jędrzejewski-Szmek2020-04-0913-0/+160
| | | | | | | | | | | | | | | | Fixes #6685.
| * | | Add parser and printer for coredump filter maskZbigniew Jędrzejewski-Szmek2020-04-095-0/+175
| | | |
| * | | basic/parse-util: add safe_atoux64()Zbigniew Jędrzejewski-Szmek2020-04-093-3/+52
| | | |
* | | | hwdb: Fix kbd brightness keys on Acer Predator PH 315-52Jian-Hong Pan2020-04-091-0/+5
| | | | | | | | | | | | | | | | | | | | Acer defines Fn+F9/10 as keyboard brightness down/up on Predator PH 315-52 laptop. So, add the quirk to correct key mappings.
* | | | Merge pull request #15345 from keszybz/systemctl-show-spacesLennart Poettering2020-04-094-17/+42
|\ \ \ \ | | | | | | | | | | Show Environment= entries with spaces in systemctl
| * | | | systemctl: show Environment entries with whitespaceZbigniew Jędrzejewski-Szmek2020-04-091-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes the Environment entries more round-trippable: a similar format is used for input and output. It is certainly more useful for users, because showing [unprintable] on anything non-trivial makes systemctl show -p Environment useless in many cases. Fixes: #14723 and https://bugzilla.redhat.com/show_bug.cgi?id=1525593. $ systemctl --user show -p Environment run-*.service Environment=ASDF=asfd "SPACE= " Environment=ASDF=asfd "SPACE=\n\n\n" Environment=ASDF=asfd "TAB=\t\\" "FOO=X X"
| * | | | shared/escape: add new escape style with \n\t escapedZbigniew Jędrzejewski-Szmek2020-04-093-8/+30
| |/ / /
* | | | man: add missing varname around keywords in systemd.unit.xmlLuca Boccassi2020-04-091-1/+2
| | | |
* | | | man: explicitly note that ExecSt*Post does count for After/Before orderingLuca Boccassi2020-04-092-2/+8
| | | |
* | | | sleep: improve log msg slightlyLennart Poettering2020-04-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Let's make the log msgs a bit longer, to make clearer what is going on here... Prompted bymy attempts to debug #15354
* | | | Merge pull request #15368 from poettering/color-fixZbigniew Jędrzejewski-Szmek2020-04-092-2/+2
|\ \ \ \ | | | | | | | | | | minor terminal ansi color seq fixes
| * | | | test-terminal-util: fix typoLennart Poettering2020-04-081-1/+1
| | | | |
| * | | | terminal-util: fixate underlined yellow color tooLennart Poettering2020-04-081-1/+1
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | non-underlined yellow uses RGB ANSI sequences while the underlined version uses the paletted ANSI sequences. Let's unify that and use the RGB sequence for both cases, so that underlined or not doesn't alter the color.
* | | | mount-setup: change the system mount propagation to shared by default only ↵Wen Yang2020-04-093-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | at bootup The commit b3ac5f8cb987 has changed the system mount propagation to shared by default, and according to the following patch: https://github.com/opencontainers/runc/pull/208 When starting the container, the pouch daemon will call runc to execute make-private. However, if the systemctl daemon-reexec is executed after the container has been started, the system mount propagation will be changed to share again by default, and the make-private operation above will have no chance to execute.
* | | | Merge pull request #15331 from vcaputo/busdpiZbigniew Jędrzejewski-Szmek2020-04-092-0/+158
|\ \ \ \ | | | | | | | | | | bus: introduce some sd-bus convenience helpers
| * | | | bus: introduce some sd-bus convenience helpersVito Caputo2020-04-042-0/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many of the convenience functions from sd-bus operate on verbose sets of discrete strings for destination/path/interface/member. For most callers, destination/path/interface are uniform, and just the member is distinct. This commit introduces a new struct encapsulating the destination/path/interface pointers called BusAddress, and wrapper functions which take a BusAddress* instead of three strings, and just pass the encapsulated strings on to the sd-bus convenience functions. Future commits will update call sites to use these helpers throwing out a bunch of repetitious destination/path/interface strings littered throughout the codebase, replacing them with some appropriately named static structs passed by pointer to these new helpers.
* | | | | systemd-run: add --slice-inheritMarc-André Lureau2020-04-092-9/+58
| | | | | | | | | | | | | | | | | | | | Add a new option to easily place a slice within the systemd-run slice.
* | | | | man: correct the default slice for systemd-run unitsLennart Poettering2020-04-091-2/+4
| | | | | | | | | | | | | | | | | | | | As suggested in #15362
* | | | | Merge pull request #15234 from ssahani/mud-lldpLennart Poettering2020-04-0910-2/+137
|\ \ \ \ \ | |_|/ / / |/| | | | LLDP : Introduce Manufacturer Usage Description (MUD)
| * | | | LLDP: Add support to transmit MUD URLSusant Sahani2020-04-087-1/+108
| | | | |
| * | | | sd-lldp: Add support to receive MUDSusant Sahani2020-04-073-1/+29
| | | | |
* | | | | Merge pull request #15358 from poettering/preset-clean-upAnita Zhang2020-04-081-2/+6
|\ \ \ \ \ | |/ / / / |/| | | | preset: let's clean up preset list a bit
| * | | | preset: let's clean up preset list a bitLennart Poettering2020-04-071-2/+6
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | let's make sure we list all singleton units we define in the preset list, either as disable or as enable. Only four were missing, let's add them in. Also, let's group the pstore one with the other ones that are enabled, right at the top.
* | | | Merge pull request #14930 from tomhughes/dnssec-canonicaliseLennart Poettering2020-04-074-78/+136
|\ \ \ \ | | | | | | | | | | Canonicalise names in DNS responses per RFC4034 requirements
| * | | | Canonicalise names in DNS responses per RFC4034 requirementsTom Hughes2020-02-242-5/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Section 6.2 of RFC4034 requires that "all uppercase US-ASCII letters in the DNS names contained within the RDATA are replaced by the corresponding lowercase US-ASCII letters" for a long list of RR types. Fixes #14891
| * | | | Remove dnssec_canonicalize function which is no longer usedTom Hughes2020-02-243-73/+0
| | | | |
* | | | | units: add ProtectClock=yesTopi Miettinen2020-04-076-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add `ProtectClock=yes` to systemd units. Since it implies certain `DeviceAllow=` rules, make sure that the units have `DeviceAllow=` rules so they are still able to access other devices. Exclude timesyncd and timedated.
* | | | | Remove message->priority fieldZbigniew Jędrzejewski-Szmek2020-04-075-8/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A warning is emitted from sd_bus_message_{get,set}_priority. Those functions are exposed by pystemd, so we have no easy way of checking if anything is calling them. Just making the functions always return without doing anything would be an option, but then we could leave the caller with an undefined variable. So I think it's better to make the functions emit a warnings and return priority=0 in the get operation.
* | | | | sysctl: enable coredump for suid binariesZbigniew Jędrzejewski-Szmek2020-04-072-3/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Right now the kernel will not dump anything that went through setuid or setgid. But it is routine for daemons to do that, and it makes things hard to debug. systemd-coredump saves the coredump readable by the users the process was running as. This should be enough to avoid information leakage. So let's also tell the kernel to do the coredump. For https://bugzilla.redhat.com/show_bug.cgi?id=1790972. Both patterns are stored in the same file, so they are enabled or disabled together. (Though suid_dumpable=2 is supposed to be safe even when writing to plain files.)
* | | | | fix manager_stateroot2020-04-071-5/+5
| | | | |
* | | | | hwdb: Add accel orientation quirk for MPMAN MPWIN895CL tabletHans de Goede2020-04-071-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Add a quirk to fix the accelerometer orientation on the MPMAN MPWIN895CL tablet.
* | | | | Merge pull request #15349 from keszybz/doc-workLennart Poettering2020-04-073-5/+12
|\ \ \ \ \ | | | | | | | | | | | | Remove stray file and fix two minor issues in man pages
| * | | | | man: update rulesZbigniew Jędrzejewski-Szmek2020-04-061-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | Apparently this step was forgotten in 935052a8aa11329061cbee234c99b03973163594.
| * | | | | Remove stray fileZbigniew Jędrzejewski-Szmek2020-04-061-0/+0
| | | | | |
| * | | | | man: drop apostophe from section titleZbigniew Jędrzejewski-Szmek2020-04-061-2/+2
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For whatever reason, this does not get rendered propely in the man page and results in an invalid code: W: manual-page-warning /usr/share/man/man7/systemd.special.7.gz 103: warning: macro `AQ' not defined We say 'user manager' and 'system manager' in most other places, so let's just use this form here too.
* | | | | hwdb: Update database of Bluetooth company identifiersMarcel Holtmann2020-04-051-68/+3623
| | | | |
* | | | | oss-fuzz: point the badge directly to our logsEvgeny Vereshchagin2020-04-041-1/+1
| | | | |
* | | | | semaphore: switch to upstream-ciEvgeny Vereshchagin2020-04-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "debian/master" has been broken since https://salsa.debian.org/systemd-team/systemd/-/commit/d6483013d5779d4d465a1e174e44a754b941d0e6 was merged.
* | | | | detect-virt: also detect "microsoft" as WSLZbigniew Jędrzejewski-Szmek2020-04-041-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From https://github.com/microsoft/WSL/issues/423#issuecomment-221627364: > it's unlikely we'll change it to something that doesn't contain "Microsoft" > or "WSL". ... but well, it happened. If they change it incompatibly w/o adding an stable detection mechanism, I think we should not add yet another detection method. But adding a different casing of "microsoft" is not a very big step, so let's do that. Follow-up for #11932.