Re: [LTP] [RFC] 'nobody' user for testing

Petr Vorel
2025-10-16T14:07:46Z

> 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.