Lines Matching refs:sct
130 struct BB_suid_config *sct;
248 sct = xmalloc(sizeof(struct BB_suid_config));
249 sct->m_applet = applet;
250 sct->m_mode = 0;
251 sct->m_next = sct_head;
252 sct_head = sct;
268 sct->m_mode |= mode_mask[(q - mode_chars) - i];
284 sct->m_uid = bb_strtoul(s, NULL, 10);
290 sct->m_uid = pwd->pw_uid;
293 sct->m_gid = bb_strtoul(e, NULL, 10);
300 sct->m_gid = grp->gr_gid;
326 sct = sct_head->m_next;
328 sct_head = sct;
351 struct BB_suid_config *sct;
354 for (sct = suid_config; sct; sct = sct->m_next) {
355 if (sct->m_applet == applet)
363 m = sct->m_mode;
364 if (sct->m_uid == ruid)
367 else if ((sct->m_gid == rgid) || ingroup(ruid, sct->m_gid))
375 if ((sct->m_mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP))
376 rgid = sct->m_gid;
386 if (sct->m_mode & S_ISUID)
387 uid = sct->m_uid;