debian(sid)ã§systemdãæ£å¸¸åä½ããªããªã£ãã®ã§ï¼åå ã¨å¯¾å¦æ¹æ³ãè¨é²ãã¦ããã¾ãï¼
çç¶
- debain (sid)ãamd64ç°å¢ã§ä½¿ç¨
- æ¤è¨¼ã®ããã«ã¹ã¿ã ã«ã¼ãã«ã使ç¨
- 2024å¹´11æ23æ¥ã« apt dist-upgrade ã§ããã±ã¼ã¸ãæ´æ°
- sysytemd 257 rc2 ãã¤ã³ã¹ãã¼ã«ããã
- åèµ·å
- sshçµç±ã§ãã°ã¤ã³ã§ããªã
- 以ä¸ã®ã¨ã©ã¼ãåºã¦ãã
systemd-logind.service: Failed to connect stdout to journal socket, ignoring: connection refused
sshd.service: Failed to connect stdout to journal socket, ignoring: connection refused
- systemd-journald ãèµ·åãã¦ããªã
- ã³ã³ã½ã¼ã«ããã¯ãã°ã¤ã³ã§ãã
調æ»çµæ
- systemd-journald ãåèµ·åãã¦ãé§ç®
$ sudo systemctl --failed UNIT LOAD ACTIVE SUB DESCRIPTION systemd-journal-flush.service loaded failed failed Trigger Flushing of Journal to Persistent Storage systemd-journald.service loaded failed failed Journal Service systemd-journald.socket loaded failed failed Journal Socket
- sshdãlogindã®logãè¨é²ããã¦ããªã
$ sudo journalctl -u sshd.service -b -- No entries --
- ã«ã¹ã¿ã ã«ã¼ãã«ã§ã¯ãªãæ¨æºã«ã¼ãã«(linux-image-amd64)ã«åãæ¿ããã¨æ£å¸¸åä½ãã
- ã©ããã kernel ã® config ãåå
æ«å®æªç½®
ã«ã¼ãã«ã®ä»¥ä¸ã®CONFIGã"y"ã«ãã¦ã«ã¼ãã«ããªãã«ãããã¨ï¼journaldãèµ·åãï¼åé¡ã¯è§£æ±ºãã
- CONFIG_BPF=y
- CONFIG_BPF_SYSCALL=y
- CONFIG_BPF_JIT=y
ç¶æ³ã¨åå ã®æ´ç
systemd ã® READMEï¼https://github.com/systemd/systemd/blob/main/READMEï¼ã確èªï¼åå ãæ´çãã
ã¾ãREADMEã確èªï¼READMEã®è¨è¼ã«ããã¨ï¼ä»¥ä¸ã®æ©è½ã使ãããã«ã¯linuxã«ã¼ãã«ã®BPFãå¿ è¦ï¼ã¨ã®ãã¨ï¼
- SocketBind{Allow|Deny}=
- RestrictNetworkInterfaces=
- IPAddressDeny=
- IPAddressAllow=
- IPIngressFilterPath=
- IPEgressFilterPath=
- RestrictFileSystems=
ããã /etc/systemd 以ä¸ã®ãã¡ã¤ã«ã§ã¯ä¸è¨ã®æ©è½ã«é¢ããè¨å®ã¯è¦å½ãããªãã£ãï¼READMEã«è¨è¼æ¼ãã®æ å ±ããããï¼sysytemd 257 rc2 ã®ãã°ã®ãããªæ°ããããï¼ããã§æéåã
ã¾ã¨ã
- journaldãèµ·åããªãåå ã調æ»
- æè¿ã® systemd ã¯bpfã¸ã®ä¾å度ãé«ããªã£ã¦ããï¼æ°ãããï¼
- èªåã§ã«ã¼ãã«ããã«ãããé㯠CONFIG_BPF=y ãã¤ãã¦ãããã»ããè¯ããããããªã