Searched defs:stat_buf (Results 1 - 10 of 10) sorted by relevance

/sssd-io/src/util/
H A Dcheck_and_open.c32 static errno_t perform_checks(struct stat *stat_buf,
42 struct stat *stat_buf; local
45 stat_buf = &local_stat_buf;
47 stat_buf = caller_stat_buf;
51 ret = stat(filename, stat_buf);
53 ret = lstat(filename, stat_buf);
61 return perform_checks(stat_buf, uid, gid, mode, mask);
70 struct stat *stat_buf; local
73 stat_buf = &local_stat_buf;
75 stat_buf
89 perform_checks(struct stat *stat_buf, uid_t uid, gid_t gid, mode_t mode, mode_t mask) argument
132 struct stat stat_buf; local
[all...]
H A Dfind_uid.c66 struct stat stat_buf; local
98 ret = fstat(fd, &stat_buf);
113 if (!S_ISREG(stat_buf.st_mode)) {
/sssd-io/src/sbus/
H A Dsssd_dbus_server.c208 struct stat stat_buf; local
264 getuid(), getgid(), S_IFSOCK, S_IFMT, &stat_buf, true);
271 if ((stat_buf.st_mode & ~S_IFMT) != (S_IRUSR|S_IWUSR)) {
283 if (stat_buf.st_uid != uid || stat_buf.st_gid != gid) {
/sssd-io/src/providers/krb5/
H A Dkrb5_renew_tgt.c324 struct stat stat_buf; local
345 ret = stat(filename, &stat_buf);
/sssd-io/src/tools/
H A Dtools_mc_util.c171 struct stat stat_buf = { 0 }; local
178 ret = stat(SSS_NSS_MCACHE_DIR "/" CLEAR_MC_FLAG, &stat_buf);
/sssd-io/src/tests/
H A Dkrb5_utils-tests.c79 struct stat stat_buf; local
82 ret = stat(dirname, &stat_buf);
85 fail_unless(S_ISDIR(stat_buf.st_mode), "[%s] is not a directory.", dirname);
86 fail_unless(stat_buf.st_uid == uid, "uid does not match, "
88 uid, stat_buf.st_uid);
89 fail_unless(stat_buf.st_gid == gid, "gid does not match, "
91 gid, stat_buf.st_gid);
92 fail_unless((stat_buf.st_mode & ~S_IFMT) == mode,
95 mode, (stat_buf.st_mode & ~S_IFMT));
/sssd-io/src/sss_client/
H A Dcommon.c899 struct stat stat_buf; local
915 statret = stat(socket_name, &stat_buf);
920 if ( ! (stat_buf.st_uid == 0 &&
921 stat_buf.st_gid == 0 &&
922 S_ISSOCK(stat_buf.st_mode) &&
923 (stat_buf.st_mode & ~S_IFMT) == 0600 )) {
930 statret = stat(socket_name, &stat_buf);
935 if ( ! (stat_buf.st_uid == 0 &&
936 stat_buf.st_gid == 0 &&
937 S_ISSOCK(stat_buf
[all...]
H A Dpam_sss.c352 struct stat stat_buf; local
388 ret = fstat(fd, &stat_buf);
395 if (!S_ISREG(stat_buf.st_mode)) {
402 if (stat_buf.st_uid != 0 || stat_buf.st_gid != 0 ||
403 (stat_buf.st_mode & ~S_IFMT) != 0644) {
411 if (stat_buf.st_size > PW_RESET_MSG_MAX_SIZE) {
417 msg_buf = malloc(stat_buf.st_size + 1);
425 total_len = sss_atomic_read_s(fd, msg_buf, stat_buf.st_size);
439 if (total_len != stat_buf
[all...]
/sssd-io/src/providers/
H A Dbe_dyndns.c1176 struct stat stat_buf; local
1180 ret = stat(NSUPDATE_PATH, &stat_buf);
/sssd-io/src/responder/common/
H A Dresponder_common.c481 struct stat stat_buf; local
487 ret = stat(rctx->priv_sock_name, &stat_buf);
495 if ( ! (stat_buf.st_uid == 0 && stat_buf.st_gid == 0 &&
496 (stat_buf.st_mode&(S_IFSOCK|S_IRUSR|S_IWUSR)) == stat_buf.st_mode)) {

Completed in 31 milliseconds