From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] syscalls/capget02: Use pid=0 instead of getpid()
Date: Thu, 9 Jan 2020 10:59:55 +0100 [thread overview]
Message-ID: <20200109095955.GC31981@rei.lan> (raw)
In-Reply-To: <6bd663d6-2ef4-cee8-1a5c-163dc2a74d8b@cn.fujitsu.com>
Hi!
> > Since pid=0 returns the capabilities for the calling thread,
> > we can remove getpid and use pid=0 instead of it. Also we
> > can cover this test point.
> Since I defined static struct, I think it doesn't need pid=0 assignment.
> I will send a v2 and add comment.
If you are at it, can you also allocate guarded buffers instead?
https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines#2231-guarded-buffers
--
Cyril Hrubis
chrubis@suse.cz
next prev parent reply other threads:[~2020-01-09 9:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-09 7:00 [LTP] [PATCH] syscalls/capget02: Use pid=0 instead of getpid() Yang Xu
2020-01-09 7:24 ` Yang Xu
2020-01-09 9:59 ` Cyril Hrubis [this message]
2020-01-09 10:14 ` Yang Xu
2020-01-10 16:46 ` Petr Vorel
2020-01-13 1:21 ` Yang Xu
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=20200109095955.GC31981@rei.lan \
--to=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox