public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Petr Vorel <petr.vorel@gmail.com>
To: Sandeep Patil <sspatil@android.com>
Cc: Sandeep Patil <sspatil@google.com>, ltp <ltp@lists.linux.it>,
	Martin Doucha <martin.doucha@suse.com>
Subject: Re: [LTP] Requested user & group [was: Re: [linux-test-project/ltp] Release 20210927 - LTP 20210927]
Date: Mon, 4 Oct 2021 20:02:31 +0200	[thread overview]
Message-ID: <YVtBt+WeskISn5+9@pevik> (raw)
In-Reply-To: <CA+nhYX2qvXjaxOBRmEJyqBr0B3JY053PiqMZ3MN-M8HdYvEnRA@mail.gmail.com>

> On Wed, Sep 29, 2021 at 1:12 AM Petr Vorel <pvorel@suse.cz> wrote:

> > Hi,

> > from 20210927 LTP release:
> > > * Testcases were fixed not to expect certain users and groups to be
> > present on the system
> > >   - some tests were expecting bin, daemon and similar groups and users
> > to exist on the system
> > >   - now LTP depends only on user 'nobody' and group 'nogroup'

> > At least some tests (e.g. fchmod02.c, chmod07.c) require other groups
> > ('users',
> > fallback to 'daemon' which is on AOSP):
> > ltpgroup = SAFE_GETGRNAM_FALLBACK("users", "daemon");

> > @Sandeep: is 'nobody' on AOSP or do we still need SAFE_GETGRNAM_FALLBACK()?


> AID_NOBODY seems to be part of the AOSP already[1], so I think that might
> work.
> I dont have a way to test this immediately right now, so adding others who
> may be able
> to verify in CC.

I'm sorry, I was wrong, I meant GID "nogroup". Looking into the source, there is
no "AID_NOGROUP", thus we need to keep using GID "daemon" for AOSP instead
"nogroup". IMHO instead SAFE_GETGRNAM_FALLBACK() this should be set somewhere in
the library, so that it's for all tests.


Kind regards,
Petr

> - ssp

> 1.
> https://cs.android.com/android/platform/superproject/+/master:system/core/libcutils/include/private/android_filesystem_config.h;l=183?q=AID_NOBODY




> > Kind regards,
> > Petr

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

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

  parent reply	other threads:[~2021-10-04 18:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <linux-test-project/ltp/releases/50325863@github.com>
2021-09-29  8:12 ` [LTP] Requested user & group [was: Re: [linux-test-project/ltp] Release 20210927 - LTP 20210927] Petr Vorel
2021-10-01 17:40   ` Sandeep Patil via ltp
2021-10-02 17:30     ` Petr Vorel
2021-10-04 18:02     ` Petr Vorel [this message]
2021-10-04 22:10       ` Steve Muckle via ltp
2021-10-05 20:24         ` Petr Vorel
2021-10-05 22:16           ` Steve Muckle via ltp
2021-10-06  8:12           ` Martin Doucha

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=YVtBt+WeskISn5+9@pevik \
    --to=petr.vorel@gmail.com \
    --cc=ltp@lists.linux.it \
    --cc=martin.doucha@suse.com \
    --cc=sspatil@android.com \
    --cc=sspatil@google.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox