ITPGCHANNEL Telegram 3416
Будни #bootstrap

Запилил новый способ запуска пользовательской сессии - через отдельный pid namespace, и mount namespace.

pid namespace - чтобы не видеть лишнего, очень удобно:

pg:home# pstree
dbus-run-sessio─┬─alacritty─┬─bash───mc───bash
│ └─31*[{alacritty}]
├─alacritty─┬─bash───pstree
│ └─31*[{alacritty}]
├─dbus-daemon
├─mako
├─niri───15*[{niri}]
├─swaybg
└─waybar───17*[{waybar}]


Ну и mount namespace, чтобы /bin глядела в мой #realm, а не в системный:

pg:home# ls -la /bin
lrwxrwxrwx 1 pg pg 15 Sep 20 21:23 /bin -> ix/realm/pg/bin


То есть, я полностью изолирую свою сессию от системного окружения, даже управляющие сокеты оставляю минимально:

pg:home# find /var/run/ | grep -v std
/var/run/
/var/run/sndiod
/var/run/sndiod/sock0
/var/run/seatd
/var/run/seatd/seatd.sock
/var/run/dbus
/var/run/dbus/system_bus_socket


Не полноценная виртуализация, но контейнеризация, с большим набором ограничений.

В итоге, твоя сессия - это только твои процессы, и твои файлы, а для остального есть sudo.

Наверное, что-то похожее делает https://www.talos.dev/
14🔥8🆒4👍3😁2🤔2🤯1🤡1👀1



tgoop.com/itpgchannel/3416
Create:
Last Update:

Будни #bootstrap

Запилил новый способ запуска пользовательской сессии - через отдельный pid namespace, и mount namespace.

pid namespace - чтобы не видеть лишнего, очень удобно:

pg:home# pstree
dbus-run-sessio─┬─alacritty─┬─bash───mc───bash
│ └─31*[{alacritty}]
├─alacritty─┬─bash───pstree
│ └─31*[{alacritty}]
├─dbus-daemon
├─mako
├─niri───15*[{niri}]
├─swaybg
└─waybar───17*[{waybar}]


Ну и mount namespace, чтобы /bin глядела в мой #realm, а не в системный:

pg:home# ls -la /bin
lrwxrwxrwx 1 pg pg 15 Sep 20 21:23 /bin -> ix/realm/pg/bin


То есть, я полностью изолирую свою сессию от системного окружения, даже управляющие сокеты оставляю минимально:

pg:home# find /var/run/ | grep -v std
/var/run/
/var/run/sndiod
/var/run/sndiod/sock0
/var/run/seatd
/var/run/seatd/seatd.sock
/var/run/dbus
/var/run/dbus/system_bus_socket


Не полноценная виртуализация, но контейнеризация, с большим набором ограничений.

В итоге, твоя сессия - это только твои процессы, и твои файлы, а для остального есть sudo.

Наверное, что-то похожее делает https://www.talos.dev/

BY commit -m "better"




Share with your friend now:
tgoop.com/itpgchannel/3416

View MORE
Open in Telegram


Telegram News

Date: |

Activate up to 20 bots While the character limit is 255, try to fit into 200 characters. This way, users will be able to take in your text fast and efficiently. Reveal the essence of your channel and provide contact information. For example, you can add a bot name, link to your pricing plans, etc. As the broader market downturn continues, yelling online has become the crypto trader’s latest coping mechanism after the rise of Goblintown Ethereum NFTs at the end of May and beginning of June, where holders made incoherent groaning sounds and role-played as urine-loving goblin creatures in late-night Twitter Spaces. In 2018, Telegram’s audience reached 200 million people, with 500,000 new users joining the messenger every day. It was launched for iOS on 14 August 2013 and Android on 20 October 2013. The optimal dimension of the avatar on Telegram is 512px by 512px, and it’s recommended to use PNG format to deliver an unpixelated avatar.
from us


Telegram commit -m "better"
FROM American