History log of /external/ltp/testcases/kernel/security/cap_bound/exec_with_inh.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
526fdf8d8ea3b43b73de7cc25eb754f12702c8d2 04-Dec-2014 Cyril Hrubis <chrubis@suse.cz> Change tst_resm() followed by tst_exit() to tst_brkm()

Created with coccinelle patch:

@@
expression list L;
expression C != {TINFO, TPASS};
@@
- tst_resm
+ tst_brkm
(C,
+ NULL,
L);
- tst_exit();

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/security/cap_bound/exec_with_inh.c
354ebb48db8e66a853a58379a4808d5dcd1ceac3 07-Dec-2012 Wanlong Gao <gaowanlong@cn.fujitsu.com> cleanup code indent

Cleanup the code indent using:

find . -name *.c -exec Lindent {} \;

It's really a big change, but can fix almost all of
the indent problem in C code, although we can't
ensure all of the changes are right, but the error
changes are really few.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/security/cap_bound/exec_with_inh.c
4548c6cf9bcdd96d8303caa4130ab638b61f8a30 19-Oct-2012 Wanlong Gao <gaowanlong@cn.fujitsu.com> Update FSF address

find . -type f -exec sed -i 's/675 Mass Ave, Cambridge, MA 02139, USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \;
find . -type f -exec sed -i 's/59 Temple Place, Suite 330, Boston, MA 02111-1307 USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \;

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/security/cap_bound/exec_with_inh.c
ec6edca7aa42b6affd989ef91b5897f96795e40f 18-Oct-2012 Chris Dearman <chris@mips.com> Add missing newline at end of file

This is a scripted change done using the following command:

find . -type d -name .git -prune -o \
-type f \! -name \*\~ \! -name .\#\* \
\! -name \*.gz \! -name \*.pdf \! -name \*.patch -print0 | \
xargs -0 sed -i -e '$a\'

Signed-off-by: Chris Dearman <chris@mips.com>
/external/ltp/testcases/kernel/security/cap_bound/exec_with_inh.c
3f8cf506e05567c0af0586c4213f3cf3fc146ac1 02-Aug-2012 Simon Xu <xu.simon@oracle.com> capability: fix sys/capability.h compile error

Capability testcases fail to compile with sys/capability.h of libcap-devel in
RHEL5-like distros:

In file included from /usr/include/sys/capability.h:34, from cap_bounds_r.c:30:
/usr/include/linux/capability.h:70:
error: expected specifier-qualifier-list before '__le32'

This is due to sys/capability.h preventing the correct _LINUX_TYPES_H_ from
being included. The problem can be bypassed by including linux/types.h in
capability testcases.

Signed-off-by: Simon Xu <xu.simon@oracle.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/security/cap_bound/exec_with_inh.c
e8530df4da095b0ea36a9ff8118ab5ce906b3e84 21-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Fix header include format.

All relative includes need to use #include "foo.h", not #include <foo.h>.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/security/cap_bound/exec_with_inh.c
2c28215423293e443469a07ae7011135d058b671 16-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Style and conformance changes.

1. Strip all leading space.
2. Move tst_exit() to main().
3. Remove tst_exit() from cleanup().
4. Remove cluebat comments.
5. Reduce some unnecessary whitespace.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/security/cap_bound/exec_with_inh.c
cd1163b2bf9f7103f0676cd516e85fe70adabc95 08-Nov-2010 Garrett Cooper <yanegomi@gmail.com> Fix obvious problems with cap_bounds compilation.

- remove int errno; as the definition in errno.h is correct and different.
- move #ifdef HAVE_SYS_CAPABILITY_H after int main(int argc, char *argv[])
in check_pe.c
- small typos and coding style

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/security/cap_bound/exec_with_inh.c
6e3dd83d9f575d98d76b8b3f642ad6e8793dbdfc 21-Mar-2010 Rishikesh K Rajak <risrajak@linux.vnet.ibm.com> Here's an attempt at fixing up and simplifying the autoconf for
detecting libcap and prctl support. After this, make autotools
etc work fine on my f12 system, and runltp -f cap_bounds passes.
the filecaps tests refuse to run claiming to be unable to find
setcap, which I'll worry about next week.

(I'm sure there is an AC_ macro for finding a command)

And second patch :

Remove the run-time checks and just have autoconf check for
libcap and setcap presence.

After this, filecaps tests compile, install, and pass on f10 at least.

Signed-off-by: Serge E. Hallyn <serue@us.ibm.com>
Signed-off-by: Rishikesh K Rajak <risrajak@linux.vnet.ibm.com>
/external/ltp/testcases/kernel/security/cap_bound/exec_with_inh.c
ef77253961f909f87e82e6d2b620e87af33e9665 09-Oct-2009 yaberauneya <yaberauneya> 1. Please see README.mk-devel for a full description of the changes
from a Make perspective.
2. Several files were changed to accomodate correct installation
practices, most notably ones in testcases/network/{ipv6,tcp_cmds},
testcases/kernel/sched/hyperthreading/ht_enabled/..., and some items
in tools/..., and also to avoid collisions as far as installed
testcases (scripts, compiled C apps) were concerned.
3. Several apps weren't autoconf safe and some autoconf tests and
conditional statements have been placed in sourcecode and in Makefiles
to either a) prevent the tests from being built / installed or b) turn
the tests into dummy apps which print out TCONF messages due to
lack-of-build support.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/security/cap_bound/exec_with_inh.c
88c166cc3a4f0720e3f723613789ced23db286c6 09-Jun-2009 subrata_modak <subrata_modak> Test library cleanups: Removing no longer used code from test.h eg. test_error.c is no longer in ltp, and the same for t_res.c so there is no need to include function prototypes for these. Adding void to functions that doesn't take any parameters; tst_exit() -> tst_exit(void); so code that pases parameters to these is not compileable any more. Also fixes all test broken by that change. As parameters passed to tst_exit() are ignored anyway it's quite safe to just remove them; but I'would rather see someone take a closer look. Code cleanups and fixes in tst_res.c:
* removed trivial and useless comments,
* cleaned coding style,
* and much more,
TODO: there is much redundant code in tst_res.c I'll eliminate that by static functions. Signed-off-by: chrubis@suse.cz.
/external/ltp/testcases/kernel/security/cap_bound/exec_with_inh.c
76adea29db505e5ca22695902870f78580c8a5aa 28-Apr-2009 subrata_modak <subrata_modak> Add capability bounding set testcases, to verify the following:
1. prctl(CAP_BSET_READ, 0..NCAPS) returns 1
2. prctl(CAP_BSET_READ, -1|NCAPS+1) return -1
3. prctl(CAP_BSET_DROP, -1|NCAPS+1) returns -1
4. prctl(CAP_BSET_DROP, 0..NCAPS) returns 1
4b. prctl(CAP_BSET_READ, N) returns 0 after each unset, 1 for those not yet removed
5. fI=empty; N \notin pP; prctl(CAPBSET_DROP, N); setting pI=N fails
6. pI=N; fI=fE=N; prctl(CAPBSET_DROP, N); exec(f) - N \in pE
(or make f setuid-root)
7. pI=0; fI=fE=N; prctl(CAPBSET_DROP, N); exec(f) - N \notin pE
(or make f setuid-root)
A set of securebits and keepcaps tests have yet to be written (as per an email I sent a few months ago). Signed-off-by: Serge Hallyn <serue@us.ibm.com>.
/external/ltp/testcases/kernel/security/cap_bound/exec_with_inh.c