ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Alexey V. Vissarionov" <gremlin@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] I: brp-verify-unit: "... assumes overflowugid
Date: Mon, 12 Feb 2024 11:04:00 +0300
Message-ID: <20240212080400.GB27225@altlinux.org> (raw)
In-Reply-To: <a910a669-63cc-4847-916f-cffe8c2395a1@basealt.ru>

Good ${greeting_time}!

On 2024-02-12 10:52:36 +0300, Anton Farygin wrote:

 >>>> Лучше всего завести для него отдельного пользователя (или,
 >>>> может, для всех xfsprogs).
 >>> Возможно, но мне хотелось бы что бы заведение системного
 >>> пользователя было осмысленно.
 >>> Возможно нам нужен пользователь не для xfs_scrub, а в целом
 >>> для операций над FS ?
 >> Да. Вот такой:
 >> disk:5:5:Block device manager:/var/empty:/bin/false
 > disk имеет rw привелегии

Все же "привИлегии". Или, еще лучше, по-русски: "права".

 > на устройства, это перебор.

Эт хде? В системах с udev? Значит, там и надо исправлять.

В системах без этого руткита ядро с CONFIG_DEVTMPFS_MOUNT создает
блочные устройства 0600:

% ll /dev/sd*
brw------- 1 root root 8,  0 сен  6 08:33 /dev/sda
brw------- 1 root root 8,  1 сен  6 08:33 /dev/sda1
brw------- 1 root root 8,  2 сен  6 08:33 /dev/sda2
brw------- 1 root root 8, 16 сен  6 08:33 /dev/sdb
brw------- 1 root root 8, 17 сен  6 08:33 /dev/sdb1
brw------- 1 root root 8, 18 сен  6 08:33 /dev/sdb2
brw------- 1 root root 8, 32 сен  6 08:33 /dev/sdc
brw------- 1 root root 8, 33 сен  6 08:33 /dev/sdc1
brw------- 1 root root 8, 34 сен  6 08:33 /dev/sdc2
brw------- 1 root root 8, 48 сен  6 08:33 /dev/sdd
brw------- 1 root root 8, 49 сен  6 08:33 /dev/sdd1
brw------- 1 root root 8, 50 сен  6 08:33 /dev/sdd2
brw------- 1 root root 8, 64 сен  6 08:33 /dev/sde
brw------- 1 root root 8, 65 сен  6 08:33 /dev/sde1
brw------- 1 root root 8, 66 сен  6 08:33 /dev/sde2
brw------- 1 root root 8, 80 сен  6 08:33 /dev/sdf
brw------- 1 root root 8, 81 сен  6 08:33 /dev/sdf1
brw------- 1 root root 8, 82 сен  6 08:33 /dev/sdf2
brw------- 1 root root 8, 96 сен  6 08:33 /dev/sdg
brw------- 1 root root 8, 97 сен  6 08:33 /dev/sdg1
brw------- 1 root root 8, 98 сен  6 08:33 /dev/sdg2

Как всегда, разработчики ядра оказались умнее разработчиков
усерспейсных костылей.


-- 
Alexey V. Vissarionov
gremlin ПРИ altlinux ТЧК org; +vii-cmiii-ccxxix-lxxix-xlii
GPG: 0D92F19E1C0DC36E27F61A29CD17E2B43D879005 @ hkp://keys.gnupg.net


  reply	other threads:[~2024-02-12  8:04 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-10 11:37 [devel] I: brp-verify-unit: "... assumes overflowugid credentials" Arseny Maslennikov
2024-02-10 14:06 ` Anton Farygin
2024-02-10 15:23   ` Arseny Maslennikov
2024-02-11 22:12     ` Dmitry V. Levin
2024-02-12  5:58       ` Anton Farygin
2024-02-12 10:34         ` Dmitry V. Levin
2024-02-12 10:50           ` Anton Farygin
2024-02-12 13:16             ` Arseny Maslennikov
2024-02-12  5:44     ` Anton Farygin
2024-02-12  7:45       ` [devel] I: brp-verify-unit: "... assumes overflowugid Alexey V. Vissarionov
2024-02-12  7:52         ` Anton Farygin
2024-02-12  8:04           ` Alexey V. Vissarionov [this message]
2024-02-12 14:23       ` [devel] I: brp-verify-unit: "... assumes overflowugid credentials" Arseny Maslennikov
2024-02-12 14:33         ` Arseny Maslennikov
2024-02-12 14:48           ` Anton Farygin
2024-02-18 13:35 ` Vitaly Lipatov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240212080400.GB27225@altlinux.org \
    --to=gremlin@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git