repo.or.cz
/
linux
/
fpc-iii.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
staging: rtl8192u: remove redundant assignment to pointer crypt
[linux/fpc-iii.git]
/
tools
/
testing
/
selftests
/
safesetid
/
safesetid-test.sh
blob
e4fdce675c54155e65ba9aa57dc56cdbf8bd3290
1
#!/bin/bash
2
3
TCID
=
"safesetid-test.sh"
4
errcode
=
0
5
6
# Kselftest framework requirement - SKIP code is 4.
7
ksft_skip
=
4
8
9
check_root
()
10
{
11
uid
=
$
(
id
-u
)
12
if
[
$uid
-ne
0
];
then
13
echo
$TCID
:
must be run as root
>&
2
14
exit
$ksft_skip
15
fi
16
}
17
18
main_function
()
19
{
20
check_root
21
.
/
safesetid-test
22
}
23
24
main_function
25
echo
"
$TCID
: done"
26
exit
$errcode