<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">
<pre>on 2019/11/01 16:49, Petr Vorel wrote:</pre>
</div>
<blockquote type="cite" cite="mid:20191101084933.GA14639@dell5510">
<pre class="moz-quote-pre" wrap="">Hi Xu,
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Signed-off-by: Yang Xu <a class="moz-txt-link-rfc2396E" href="mailto:xuyang2018.jy@cn.fujitsu.com"><xuyang2018.jy@cn.fujitsu.com></a>
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap=""> static struct tst_test test = {
.tcnt = ARRAY_SIZE(tcases),
.test = verify_prctl,
+ .caps = (struct tst_cap []) {
+ TST_CAP(TST_CAP_DROP, CAP_SYS_ADMIN),
+ TST_CAP(TST_CAP_DROP, CAP_SETPCAP),
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">This fails on some old distros (Debian stable [1], CentOS 6 [2]),
but also on new (Fedora latest [3]):
undeclared identifier 'CAP_SETPCAP'
Could you please setup travis for your LTP fork and validate builds before
posting to ML?</pre>
</blockquote>
<pre>Hi Petr
Ok. I use travis before sending quotactl patches, but I forgot to use it for prctl02.</pre>
<pre>Sorry. I will test my patches in my ltp fork <span class="gt-baf-term-text"><span class="gt-baf-cell gt-baf-word-clickable">later</span></span>.
ps: I add missing linux/capability.h to fix this build error and this is building in my ltp fork.
Thanks
Yang Xu
</pre>
<blockquote type="cite" cite="mid:20191101084933.GA14639@dell5510">
<pre class="moz-quote-pre" wrap="">
BTW it'd be nice to have this feature in our patchwork [4], but not sure if this
is available and configurable on our patchwork instance (we don't host it).
Kind regards,
Petr
[1] <a class="moz-txt-link-freetext" href="https://travis-ci.org/pevik/ltp/jobs/605881703">https://travis-ci.org/pevik/ltp/jobs/605881703</a>
[2] <a class="moz-txt-link-freetext" href="https://travis-ci.org/pevik/ltp/jobs/605881705">https://travis-ci.org/pevik/ltp/jobs/605881705</a>
[3] <a class="moz-txt-link-freetext" href="https://travis-ci.org/pevik/ltp/jobs/605881704">https://travis-ci.org/pevik/ltp/jobs/605881704</a>
[4] <a class="moz-txt-link-freetext" href="https://github.com/linux-test-project/ltp/issues/599">https://github.com/linux-test-project/ltp/issues/599</a>
</pre>
</blockquote>
</body>
</html>