tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ATF as nonprivilegied user

Emmanuel Dreyfus <> wrote:

> We are not talking about the same issue: you run as unprivilegied a
> test that need root privileges. I want to run as root a test that
> seteuid to an unprivilegied user.
> But I found a workaround:

Which had numerous corner cases. Here is The Right Way:

ATF_TC_HEAD(fsearch_perm1, tc)
        atf_tc_set_md_var(tc, "descr", "See that openat enforce search
        atf_tc_set_md_var(tc, "require.user", "unprivileged");

Emmanuel Dreyfus

Home | Main Index | Thread Index | Old Index