<div>Hi Cyril</div><div>prctl07.c tests ambient capability.</div><div><br></div><div>Best Regards</div><div>Yang Xu</div><div><br></div><div><!--emptysign--></div><div><div style="font-size:12px;padding:2px 0;">---Original---</div><div style="font-size:12px;background:#f0f0f0;color:#212121;padding:8px!important;border-radius:4px;line-height:1.5;"><div><b>From:</b> "Cyril Hrubis"<chrubis@suse.cz></div><div><b>Date:</b> Mon, Apr 20, 2020 20:55 PM</div><div><b>To:</b> "Yang Xu"<xuyang2018.jy@cn.fujitsu.com>;</div><div><b>Cc:</b> "ltp"<ltp@lists.linux.it>;</div><div><b>Subject:</b> Re: [LTP] [PATCH v2 02/10] syscalls/ioctl:add common c file for loop ioctl</div></div><br>Hi!<br>> > In the end I've renamed and moved these functions into the test library<br>> > because the functionality is generic enough and I doubt that these<br>> > tests would be the only one using it.<br>> That's great.  I remember prctl cases use this function. Also, in some <br>> cap cases, it needs bitwise operators(I only know prctl08.c). Maybe we <br>> can add TST_ASSERT_BITWISE?<br><br>I guess that we would need to pass to numbers to the bitwise operation,<br>one would be mask for which bits should be used for the comparsion and<br>one with the actual bits. Which tests would need that? I looked at<br>capset and capget tests but there does not seem to any bitwise checks on<br>values on proc or sys files.<br><br>-- <br>Cyril Hrubis<br>chrubis@suse.cz<br><br>-- <br>Mailing list info: https://lists.linux.it/listinfo/ltp<br></div>