Lennart Poettering
7c5137329d
Merge pull request #15713 from poettering/home-discard-when-offline
...
homed: optionally, issue FITRIM ioctl when logging out
2020-05-07 19:17:48 +02:00
Lennart Poettering
bb5da6c385
meson: re-run ninja update-man-rules
...
Split out of #15703 , because it has nothing to do with that.
Follow-up for: 4f07ddfa9b
2020-05-07 19:00:59 +02:00
Vito Caputo
5e55340ad4
Merge pull request #15681 from vcaputo/buslocator
...
*: switch to BusLocator-oriented helpers
2020-05-07 09:46:01 -07:00
Vito Caputo
43fe4f7613
timedate: switch to BusLocator-oriented helpers
...
Mechanical substitution reducing some verbosity
2020-05-07 08:46:44 -07:00
Vito Caputo
8010c205dd
systemctl: switch to BusLocator-oriented helpers
...
Mechanical substitution reducing some verbosity
2020-05-07 08:46:44 -07:00
Vito Caputo
7ad61613de
run: switch to BusLocator-oriented helpers
...
Mechanical substitution reducing some verbosity
2020-05-07 08:46:44 -07:00
Vito Caputo
d96f9abc95
resolve: switch to BusLocator-oriented helpers
...
Mechanical substitution reducing some verbosity
2020-05-07 08:46:44 -07:00
Vito Caputo
bf5c8177f8
portable: switch to BusLocator-oriented helpers
...
Mechanical substitution reducing some verbosity
2020-05-07 08:46:44 -07:00
Vito Caputo
a63d7e7bf6
nss-resolve: switch to BusLocator-oriented helpers
...
Mechanical substitution reducing some verbosity
2020-05-07 08:46:44 -07:00
Vito Caputo
7b38987880
nss-mymachines: switch to BusLocator-oriented helpers
...
Mechanical substitution reducing some verbosity
2020-05-07 08:46:44 -07:00
Vito Caputo
1ecaac5c30
nspawn: switch to BusLocator-oriented helpers
...
Mechanical substitution reducing some verbosity
2020-05-07 08:46:44 -07:00
Vito Caputo
8a048c8c42
network: switch to BusLocator-oriented helpers
...
Mechanical substitution reducing some verbosity
2020-05-07 08:46:44 -07:00
Vito Caputo
92cb8ebcb4
mount: switch to BusLocator-oriented helpers
...
Mechanical substitution reducing some verbosity
2020-05-07 08:46:44 -07:00
Vito Caputo
14456f7607
machine: switch to BusLocator-oriented helpers
...
Mechanical substitution reducing some verbosity
2020-05-07 08:46:43 -07:00
Vito Caputo
5d990cc571
login: switch to BusLocator-oriented helpers
...
Mechanical substitution reducing some verbosity
2020-05-07 08:46:43 -07:00
Vito Caputo
e3c8ec3b33
locale: switch to BusLocator-oriented helpers
...
Mechanical substitution reducing some verbosity
2020-05-07 08:46:43 -07:00
Vito Caputo
de770b6042
analyze: switch to BusLocator-oriented helpers
...
Mechanical substitution reducing some verbosity
2020-05-07 08:46:43 -07:00
Vito Caputo
8a1596aab5
home: switch to shared bus_home_mgr
...
Largely mechanical change; s/&home_mgr/bus_home_mgr/g
2020-05-07 08:46:43 -07:00
Vito Caputo
54e27bb5c0
bus: introduce bus-locator.[ch]
...
Move BusLocator into its own header, introduce collection of
locators for use throughout the code.
2020-05-07 08:46:40 -07:00
Zbigniew Jędrzejewski-Szmek
5cea17a177
Merge pull request #15635 from keszybz/set-put-strdup
...
Let set_put_strdup() allocate the set and related changes
2020-05-07 17:01:59 +02:00
Lennart Poettering
b36dc5cebd
Merge pull request #15714 from poettering/homed-key-mgmt-doc
...
man: document homed key management
2020-05-07 16:39:54 +02:00
Lennart Poettering
6a49603e08
update TODO
2020-05-07 16:13:07 +02:00
Lennart Poettering
c0440512e6
docs: document the new offline discard logic
2020-05-07 16:13:07 +02:00
Lennart Poettering
28a7f10620
homework: run fitrim or fallocate on logout based on the new user record property
2020-05-07 16:13:07 +02:00
Lennart Poettering
cba116991d
homectl: add option for controlling new luksOfflineDiscard user record field
2020-05-07 16:13:07 +02:00
Lennart Poettering
5e86c82acd
user-record: add new field for requesting LUKS discard on logout
...
We make this entirely independent of the regular discard field, i.e. the
one that controls discard behaviour when the home directory is online.
Not all combinations make a ridiculous amount of sense, but most do.
Specifically:
online-discard = yes, offline-discard = yes
→ Discard when activating explicitly, and during runtime using
the "discard" mount option, and discard explicitly when logging
out again.
online-discard = no, offline-discard = yes
→ The new default: when logging in allocate the full backing
store, and use no discard while active. When loging out discard
everything. This provides nice behaviour: we take minimal storage
when offline but provide allocation guarantees while online.
online-discard = no, offline-discard = no
→ Never, ever discard, always operate with fully allocated
backing store. The extra safe mode.
2020-05-07 16:13:07 +02:00
Lennart Poettering
c06bcd4d68
homed: allow overriding homework path via env var
...
Let's make debugging a bit easier: when invoking homed from the build
tree it's now possible to make sure homed invokes the build tree's
homework binary by setting an env var.
2020-05-07 15:48:59 +02:00
Lennart Poettering
1f7c6f906b
update TODO
2020-05-07 15:46:00 +02:00
Lennart Poettering
6d68a0b3dd
man: document homed key management
...
Fixes : #15235
2020-05-07 15:46:00 +02:00
Zbigniew Jędrzejewski-Szmek
6bae4b905c
Revert "Add Kensington SlimBlade Trackball"
...
This reverts commit 8049c79b65
.
2020-05-07 13:11:41 +02:00
Daan De Meyer
d402edb764
resolved: Fix build error due to missing include.
2020-05-07 03:05:50 -07:00
gaurav
48a3b5c6db
netlink socket correct check ( #15720 )
2020-05-07 09:55:31 +02:00
Lennart Poettering
f5b7d681c7
homectl: show disk free in percent in 'inspect'
2020-05-07 09:52:56 +02:00
Zbigniew Jędrzejewski-Szmek
354722dde4
Merge pull request #15733 from benjarobin/fix_warn_ndebug
...
Allow to build without any warning with NDEBUG defined + Bugfix
2020-05-07 09:47:19 +02:00
Benjamin Robin
08f468567d
tree-wide: Workaround -Wnonnull GCC bug
...
See issue #6119
2020-05-07 09:43:28 +02:00
Lennart Poettering
ba876a4c8d
homed: open up home dir Acquire operation to unpriv clients
...
Apparently unpriv clients expect to be able to auth via PAM. Kinda
sucks. But it is what it is. Hence open this up.
This shouldn't be too bad in effect since clients after all need to
provide security creds for unlocking the home dir, in order to misuse
this.
Fixes : #15072
2020-05-07 09:43:02 +02:00
Daan De Meyer
be28f72d6a
resolved: Break include cycles
2020-05-07 09:00:48 +02:00
Benjamin Robin
0454681395
meson: Do not drop warnings (unused variable) when NDEBUG is defined
...
This is no longer needed, since there is now no warning with NDEBUG
defined
2020-05-06 23:03:25 +02:00
Benjamin Robin
683d0bc041
resize-fs: Use xsprintf instead of snprintf
2020-05-06 23:03:25 +02:00
Benjamin Robin
060d9c61b6
test: Use assert_se() where variables are only checked by assert
...
Allow to build without any warning with NDEBUG defined
2020-05-06 23:03:25 +02:00
Benjamin Robin
f391597c67
tree-wide: Fix, replace assert() by assert_se() when there is side effect
2020-05-06 23:03:25 +02:00
Benjamin Robin
0a0e594a26
tree-wide: Mark as _unused_ variables that are only used in assert()
...
Allow to build without any warning with NDEBUG defined
2020-05-06 23:03:25 +02:00
Zbigniew Jędrzejewski-Szmek
96249bf8d6
Merge pull request #15735 from poettering/pam-snippet-update
...
Slightly update our shipped and suggested PAM snippets, so that pam_systemd_home.so is more likely to just work
2020-05-06 22:45:29 +02:00
Zbigniew Jędrzejewski-Szmek
a06df2a4bd
Merge pull request #15727 from poettering/systemctl-list-sockets-tweak
...
systemctl: some table output tweaks
2020-05-06 22:38:25 +02:00
Lennart Poettering
4ad5bf7865
man: bring example PAM snippet of pam_systemd and pam_systemd_home back in sync
...
Let's make it the same snippet, just highlight different lines.
2020-05-06 22:30:43 +02:00
Lennart Poettering
c6472bb019
man: highlight relevant lines in pam_systemd_home.so example PAM snippet
...
let's do this like we do in the NSS module man pages.
2020-05-06 22:30:27 +02:00
Lennart Poettering
bd685faa1a
login: include pam_systemd_home.so in the default PAM snippet we ship for user@.service
...
Let's make sure systemd-homed works out-of-the box as well as possible.
2020-05-06 22:30:07 +02:00
Balint Reczey
e48471b948
test: Skip test-boot-timestamps on permission denied
...
In containers even root can be denied to access the needed files.
2020-05-06 22:01:50 +02:00
Bastien Nocera
259f0dfbec
hwdb: Force "mouse" type on Logitech Ultrathin Touch Mouse
...
Closes : #15657
2020-05-06 21:09:29 +02:00
Zbigniew Jędrzejewski-Szmek
e57ac1b017
tree-wide: use _cleanup_set_free_ where appropriate
...
If we already have the helper defined, let's use it instead of open-coding.
2020-05-06 17:08:17 +02:00