OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:CHOWN
(Results
1 - 7
of
7
) sorted by null
/external/ltp/testcases/kernel/syscalls/chown/
chown01.c
42
* TEST TITLE : Basic test for
chown
(2)
62
* 1.)
chown
(2) returns...(See Description)
90
* This is a Phase I test for the
chown
(2) system call. It is intended
93
*
chown
(2).
142
TEST(
CHOWN
(cleanup, fname, uid, gid));
145
tst_resm(TFAIL | TTERRNO, "
chown
(%s, %d,%d) failed",
148
tst_resm(TPASS, "
chown
(%s, %d,%d) returned %ld",
167
UID16_CHECK((uid = geteuid()), "
chown
", cleanup)
168
GID16_CHECK((gid = getegid()), "
chown
", cleanup)
chown05.c
24
* Verify that,
chown
(2) succeeds to change the owner and group of a file
29
*
chown
(2) should return 0 and the ownership set on the file should match
123
TEST(
CHOWN
(cleanup, TESTFILE, user_id, group_id));
126
tst_resm(TFAIL | TTERRNO, "
chown
failed");
143
tst_resm(TPASS, "
chown
succeeded");
chown02.c
24
* Verify that, when
chown
(2) invoked by super-user to change the owner and
31
*
chown
(2) should return 0 and the ownership set on the file should match
141
* Call
chown
(2) with different user id and
144
TEST(
CHOWN
(cleanup, file_name, user_id, group_id));
148
"
chown
(%s, ..) failed", file_name);
176
*
chown
().
194
"
chown
(%s, ..) succeeded",
229
* setup1() - Setup function for
chown
(2) to verify setuid/setgid bits
251
* setup2() - Setup function for
chown
(2) to verify setgid bit set
chown03.c
24
* Verify that,
chown
(2) succeeds to change the group of a file specified
29
* Also, verify that
chown
() clears the setuid/setgid bits set on the file.
32
*
chown
(2) should return 0 and the ownership set on the file should match
114
UID16_CHECK((user_id = geteuid()), "
chown
", cleanup)
115
GID16_CHECK((group_id = getegid()), "
chown
", cleanup)
117
TEST(
CHOWN
(cleanup, TESTFILE, -1, group_id));
120
tst_resm(TFAIL | TTERRNO, "
chown
(%s, ..) failed",
143
tst_resm(TPASS, "
chown
(%s, ..) was successful",
chown04.c
26
* 1)
chown
(2) returns -1 and sets errno to EPERM if the effective user id
29
* 2)
chown
(2) returns -1 and sets errno to EACCES if search permission is
31
* 3)
chown
(2) returns -1 and sets errno to EFAULT if pathname points
33
* 4)
chown
(2) returns -1 and sets errno to ENAMETOOLONG if the pathname
35
* 5)
chown
(2) returns -1 and sets errno to ENOTDIR if the directory
37
* 6)
chown
(2) returns -1 and sets errno to ENOENT if the specified file
107
UID16_CHECK((user_id = geteuid()), "
chown
", cleanup)
108
GID16_CHECK((group_id = getegid()), "
chown
", cleanup)
114
TEST(
CHOWN
(cleanup, tc[i].pathname, user_id, group_id));
117
tst_resm(TFAIL, "
chown
succeeded unexpectedly")
[
all
...]
/external/ltp/testcases/kernel/syscalls/utils/
compat_tst_16.h
153
int
CHOWN
(const char *path, UID_T owner, GID_T group)
155
TST_CREATE_SYSCALL(
chown
, path, owner, group);
compat_16.h
166
int
CHOWN
(void (cleanup)(void), const char *path, UID_T owner, GID_T group)
168
LTP_CREATE_SYSCALL(
chown
, cleanup, path, owner, group);
Completed in 109 milliseconds