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

/sssd/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/src/sss_client/
H A Dcommon.c857 struct stat stat_buf; local
872 statret = stat(socket_name, &stat_buf);
877 if ( ! (stat_buf.st_uid == 0 &&
878 stat_buf.st_gid == 0 &&
879 S_ISSOCK(stat_buf.st_mode) &&
880 (stat_buf.st_mode & ~S_IFMT) == 0600 )) {
887 statret = stat(socket_name, &stat_buf);
892 if ( ! (stat_buf.st_uid == 0 &&
893 stat_buf.st_gid == 0 &&
894 S_ISSOCK(stat_buf
[all...]
H A Dpam_sss.c305 struct stat stat_buf; local
341 ret = fstat(fd, &stat_buf);
348 if (!S_ISREG(stat_buf.st_mode)) {
355 if (stat_buf.st_uid != 0 || stat_buf.st_gid != 0 ||
356 (stat_buf.st_mode & ~S_IFMT) != 0644) {
364 if (stat_buf.st_size > PW_RESET_MSG_MAX_SIZE) {
370 msg_buf = malloc(stat_buf.st_size + 1);
378 total_len = sss_atomic_read_s(fd, msg_buf, stat_buf.st_size);
392 if (total_len != stat_buf
[all...]
/sssd/src/sbus/
H A Dsssd_dbus_server.c200 struct stat stat_buf; local
255 getuid(), getgid(), S_IFSOCK, S_IFMT, &stat_buf, true);
262 if ((stat_buf.st_mode & ~S_IFMT) != (S_IRUSR|S_IWUSR)) {
274 if (stat_buf.st_uid != uid || stat_buf.st_gid != gid) {
/sssd/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/src/tools/
H A Dtools_mc_util.c170 struct stat stat_buf = { 0 }; local
177 ret = stat(SSS_NSS_MCACHE_DIR "/" CLEAR_MC_FLAG, &stat_buf);
/sssd/src/responder/common/
H A Dresponder_common.c395 struct stat stat_buf; local
401 ret = stat(rctx->priv_sock_name, &stat_buf);
409 if ( ! (stat_buf.st_uid == 0 && stat_buf.st_gid == 0 &&
410 (stat_buf.st_mode&(S_IFSOCK|S_IRUSR|S_IWUSR)) == stat_buf.st_mode)) {
/sssd/src/providers/krb5/
H A Dkrb5_renew_tgt.c324 struct stat stat_buf; local
345 ret = stat(filename, &stat_buf);
/sssd/src/providers/
H A Dbe_dyndns.c1172 struct stat stat_buf; local
1176 ret = stat(NSUPDATE_PATH, &stat_buf);

Completed in 592 milliseconds