All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: Cyril Hrubis <chrubis@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [RFC] 'nobody' user for testing
Date: Thu, 16 Oct 2025 16:07:25 +0200	[thread overview]
Message-ID: <20251016140725.GA286245@pevik> (raw)
In-Reply-To: <aPD0oQRSUqVATsZs@yuki.lan>

> Hi!
> > OK, I can write it unless Jan plans to work on it (Jan, please let me know).

> > I propose to have the usual LTP approach to have functionality used by C API
> > (e.g. lib/tst_sudo.c) and reused by thin wrapper available for shell API
> > (testcases/lib/tst_sudo.c).

> > Few C API tests would use it (prctl06 and other mentioned previously [1] as 3)),
> > in shell API only these 2 IMA tests.

> There are likely more nuances in the tests that use C, some set real
> uid/git some only uid etc. So I wouldn't bother adding helper for six
> tests or so and write directly just the shell helper.

OK. It will be just for these 2 IMA tests, but probably worth because the check
for the shell which is performed by su and sudo would be solved. And we avoid
adding a new user.

Kind regards,
Petr

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

      reply	other threads:[~2025-10-16 14:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-17 10:27 [LTP] [RFC] 'nobody' user for testing Petr Vorel
2025-09-22  8:48 ` Jan Stancek via ltp
2025-09-26 12:25   ` Petr Vorel
2025-10-06  9:48   ` Petr Vorel
2025-09-26 13:24 ` Andrea Cervesato via ltp
2025-09-29  8:31   ` Petr Vorel
2025-10-16 12:32     ` Cyril Hrubis
2025-10-16 13:09       ` Petr Vorel
2025-10-16 13:35         ` Cyril Hrubis
2025-10-16 14:07           ` Petr Vorel [this message]

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=20251016140725.GA286245@pevik \
    --to=pvorel@suse.cz \
    --cc=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.