Mike Yuan
|
180341e732
|
basic,shared: mark eligible functions with _pure_/_const_
Following the recent witch hunt done to static inline functions
I figure we should at least give the compiler some more hint
on optimizations.
|
2025-05-26 20:26:58 +02:00 |
|
Daan De Meyer
|
69a283c5f2
|
shared: Clean up includes
Split out of #37344.
|
2025-05-24 14:00:44 +02:00 |
|
Mike Yuan
|
02c4d27b17
|
nspawn: do not spuriously override cgroup2fs options on host
|
2025-04-04 14:36:14 +02:00 |
|
Mike Yuan
|
1614d0c451
|
core/namespace: stop applying mount options on private cgroupfs mount
We always unshare cgroup ns for ProtectControlGroups=private/strict,
while the mount options only apply to the cgroupfs instance
in initial cgns (c.f.
https://github.com/torvalds/linux/blob/b69bb476dee99d564d65d418e9a20acca6f32c3f/kernel/cgroup/cgroup.c#L1984)
Hence let's drop the thing wholesale.
Also, as noted in the comment already, mount_private_apivfs()
internally enforces nosuid/noexec, so drop explicit flags too.
|
2025-03-30 18:57:18 +02:00 |
|
Mike Yuan
|
36dad381a2
|
mount-setup: remove cgroup v1 hierarchy mounting
|
2025-03-16 15:30:38 +01:00 |
|
Mike Yuan
|
64db06c421
|
mount-setup: generalize cgroupfs_recursiveprot_supported()
|
2025-03-16 15:22:13 +01:00 |
|
Mike Yuan
|
fbc8d90bd5
|
shared/mount-setup: split out mount_cgroup_legacy_controllers
|
2024-02-27 23:03:43 +08:00 |
|
Mike Yuan
|
72a9f4fa45
|
shared/mount-setup: minor modernization
|
2024-02-27 23:03:43 +08:00 |
|
Yu Watanabe
|
bac11cd667
|
core: move several source files to src/shared
As, the files are used by many executables, fstab-generator, remount-fs,
machine-id-setup, and etc.
With this change, the total size of the relevant executables and
libshared slightly decreases.
Before:
```
$ ll systemd-fstab-generator systemd-remount-fs systemd-machine-id-setup systemd-shutdown systemd-nspawn systemd src/shared/libsystemd-shared-247.so
-rwxrwxr-x 1 watanabe watanabe 7577800 Jan 5 13:35 src/shared/libsystemd-shared-247.so
-rwxrwxr-x 1 watanabe watanabe 4608360 Jan 5 13:35 systemd
-rwxrwxr-x 1 watanabe watanabe 117240 Jan 5 13:35 systemd-fstab-generator
-rwxrwxr-x 1 watanabe watanabe 61576 Jan 5 13:35 systemd-machine-id-setup
-rwxrwxr-x 1 watanabe watanabe 853080 Jan 5 13:35 systemd-nspawn
-rwxrwxr-x 1 watanabe watanabe 70600 Jan 5 13:35 systemd-remount-fs
-rwxrwxr-x 1 watanabe watanabe 172624 Jan 5 13:35 systemd-shutdown
```
Total: 13461280
After:
```
$ ll systemd-fstab-generator systemd-remount-fs systemd-machine-id-setup systemd-shutdown systemd-nspawn systemd src/shared/libsystemd-shared-247.so
-rwxrwxr-x 1 watanabe watanabe 7658336 Jan 5 13:32 src/shared/libsystemd-shared-247.so
-rwxrwxr-x 1 watanabe watanabe 4523560 Jan 5 13:32 systemd
-rwxrwxr-x 1 watanabe watanabe 78288 Jan 5 13:32 systemd-fstab-generator
-rwxrwxr-x 1 watanabe watanabe 30984 Jan 5 13:32 systemd-machine-id-setup
-rwxrwxr-x 1 watanabe watanabe 840384 Jan 5 13:32 systemd-nspawn
-rwxrwxr-x 1 watanabe watanabe 39104 Jan 5 13:32 systemd-remount-fs
-rwxrwxr-x 1 watanabe watanabe 117160 Jan 5 13:32 systemd-shutdown
```
Total: 13287816
|
2021-01-19 07:04:19 +09:00 |
|
Lennart Poettering
|
08e1fb68d7
|
build-sys: move *-setup out of shared to avoid selinux being pulled in
|
2012-04-12 18:19:34 +02:00 |
|
Kay Sievers
|
f33d3ec1d7
|
move more common files to shared/ and add them to shared.la
|
2012-04-12 02:39:37 +02:00 |
|