This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
MahiroOS-jhalfs/common
Pierre Labastie cff36a77ba Fix session management in run-in-cgroup.sh
Still WIP but some progress...
When moving a shell to a cgroup not associated with a session,
then subsequent calls to pam_systemd or pam_elogind create
a new session, and a new cgroup for that session, so that the
cgroup of the calling process is not used (this is a problem
with both systemd and elogind). For systemd, the problem can be
solved by passing --slice <user slice> to systemd-run. For elogind,
we need to first move the shell to a non session cgroup, then run
sudo so that a new session is created, then pass the cpuset to that
session's cgroup. Hopefully, if neither systemd nor elgind is used,
then the former solution should work (to be tested!!!).
2023-11-16 14:37:58 +01:00
..
libs Fix a typo 2023-11-15 18:24:22 +01:00
chroot.xsl Replace $(nproc || echo 1) and $(nproc) 2023-09-11 16:04:44 +08:00
common-functions Run the master Makefile with -j1 2022-11-04 13:19:18 +01:00
create-sbu_du-report.sh Various fixes for create-sbu_du-report.sh 2022-02-19 15:08:37 +01:00
hostreqs.xsl Remove $Id$ comments, they are useless with git 2021-10-31 10:22:30 +01:00
kernfs.xsl Modify kernfs scripts to be able to run them twice 2023-09-12 22:54:51 +02:00
makefile-functions Change mail address for sending reports 2022-03-02 11:46:09 +01:00
packages.xsl Remove legacy: remove everything about HLFS 2022-02-28 13:30:53 +01:00
progress_bar.sh Remove $Id$ comments, they are useless with git 2021-10-31 10:22:30 +01:00
run-in-cgroup.sh Fix session management in run-in-cgroup.sh 2023-11-16 14:37:58 +01:00
urls.xsl Use only upstream's URL in urls.lst 2022-05-07 11:24:06 +02:00