Home
last modified time | relevance | path

Searched full:passwd (Results 1 – 25 of 1757) sorted by relevance

12345678910>>...71

/aosp_15_r20/external/linux-kselftest/tools/testing/selftests/openat2/
H A Dresolve_test.c31 * | `-- passwd
34 * |-- relsym -> etc/passwd
36 * |-- abssym -> /etc/passwd
42 * |-- passwd -> ../cheeky/../cheeky/../etc/../etc/passwd
43 * |-- abspasswd -> /../cheeky/../cheeky/../etc/../etc/passwd
44 * |-- dotdotlink -> ../../../../../../../../../../../../../../etc/passwd
45 * `-- garbagelink -> /../../../../../../../../../../../../../../etc/passwd
83 E_touchat(dfd, "etc/passwd"); in setup_testdir()
87 E_symlinkat("etc/passwd", dfd, "relsym"); in setup_testdir()
89 E_symlinkat("/etc/passwd", dfd, "abssym"); in setup_testdir()
[all …]
/aosp_15_r20/external/python/cpython2/Lib/plat-os2emx/
Dpwd.py12 OS/2 and similar systems which don't normally have an /etc/passwd file.
35 - ${ETC}/passwd (or %ETC%/passwd)
36 - ${PYTHONHOME}/Etc/passwd (or %PYTHONHOME%/Etc/passwd)
62 # try and find the passwd file
67 __passwd_path.append('%s/passwd' % os.environ['ETC'])
69 __passwd_path.append('%s/Etc/passwd' % os.environ['PYTHONHOME'])
116 raise KeyError, '>> passwd database fields not delimited <<'
121 class Passwd: class
122 def __init__(self, name, passwd, uid, gid, gecos, dir, shell): argument
124 self.__dict__['pw_passwd'] = passwd
[all …]
/aosp_15_r20/bionic/tests/
H A Dgrp_pwd_test.cpp61 static void check_passwd(const passwd* pwd, const char* username, uid_t uid, uid_type_t uid_type, in check_passwd()
90 passwd* pwd = getpwuid(uid); in check_getpwuid()
99 passwd* pwd = getpwnam(username); in check_getpwnam()
107 passwd pwd_storage; in check_getpwuid_r()
112 passwd* pwd = nullptr; in check_getpwuid_r()
122 passwd pwd_storage; in check_getpwnam_r()
127 passwd* pwd = nullptr; in check_getpwnam_r()
147 passwd* passwd = nullptr; in expect_no_passwd_id() local
148 passwd = getpwuid(uid); in expect_no_passwd_id()
149 EXPECT_EQ(nullptr, passwd) << "name = '" << passwd->pw_name << "'"; in expect_no_passwd_id()
[all …]
/aosp_15_r20/bionic/libc/bionic/
H A Dgrp_pwd.cpp60 {"/etc/passwd", "system_"}, // symlinks to /system/etc/passwd in Android
61 {"/vendor/etc/passwd", "vendor_"},
62 {"/odm/etc/passwd", "odm_"},
63 {"/product/etc/passwd", "product_"},
64 {"/system_ext/etc/passwd", "system_ext_"},
78 // okay for all the <grp.h> functions to share state, and all the <passwd.h>
79 // functions to share state, but <grp.h> functions can't clobber <passwd.h>
104 auto result = &__get_bionic_tls().passwd; in get_passwd_tls_buffer()
109 static passwd* android_iinfo_to_passwd(passwd_state_t* state, in android_iinfo_to_passwd()
115 passwd* pw = &state->passwd_; in android_iinfo_to_passwd()
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/urllib/
Drequest.py56 passwd='geheim$parole')
837 self.passwd = {}
839 def add_password(self, realm, uri, user, passwd): argument
843 if realm not in self.passwd:
844 self.passwd[realm] = {}
848 self.passwd[realm][reduced_uri] = (user, passwd)
851 domains = self.passwd.get(realm, {})
914 def add_password(self, realm, uri, user, passwd, is_authenticated=False): argument
918 super().add_password(None, uri, user, passwd)
919 super().add_password(realm, uri, user, passwd)
[all …]
/aosp_15_r20/external/python/cpython3/Lib/urllib/
Drequest.py56 passwd='geheim$parole')
837 self.passwd = {}
839 def add_password(self, realm, uri, user, passwd): argument
843 if realm not in self.passwd:
844 self.passwd[realm] = {}
848 self.passwd[realm][reduced_uri] = (user, passwd)
851 domains = self.passwd.get(realm, {})
914 def add_password(self, realm, uri, user, passwd, is_authenticated=False): argument
918 super().add_password(None, uri, user, passwd)
919 super().add_password(realm, uri, user, passwd)
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/urllib/
Drequest.py56 passwd='geheim$parole')
837 self.passwd = {}
839 def add_password(self, realm, uri, user, passwd): argument
843 if realm not in self.passwd:
844 self.passwd[realm] = {}
848 self.passwd[realm][reduced_uri] = (user, passwd)
851 domains = self.passwd.get(realm, {})
914 def add_password(self, realm, uri, user, passwd, is_authenticated=False): argument
918 super().add_password(None, uri, user, passwd)
919 super().add_password(realm, uri, user, passwd)
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/urllib/
Drequest.py56 passwd='geheim$parole')
837 self.passwd = {}
839 def add_password(self, realm, uri, user, passwd): argument
843 if realm not in self.passwd:
844 self.passwd[realm] = {}
848 self.passwd[realm][reduced_uri] = (user, passwd)
851 domains = self.passwd.get(realm, {})
914 def add_password(self, realm, uri, user, passwd, is_authenticated=False): argument
918 super().add_password(None, uri, user, passwd)
919 super().add_password(realm, uri, user, passwd)
[all …]
/aosp_15_r20/prebuilts/build-tools/common/py3-stdlib/urllib/
H A Drequest.py56 passwd='geheim$parole')
837 self.passwd = {}
839 def add_password(self, realm, uri, user, passwd): argument
843 if realm not in self.passwd:
844 self.passwd[realm] = {}
848 self.passwd[realm][reduced_uri] = (user, passwd)
851 domains = self.passwd.get(realm, {})
914 def add_password(self, realm, uri, user, passwd, is_authenticated=False): argument
918 super().add_password(None, uri, user, passwd)
919 super().add_password(realm, uri, user, passwd)
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/lib/python3.11/urllib/
Drequest.py56 passwd='geheim$parole')
837 self.passwd = {}
839 def add_password(self, realm, uri, user, passwd): argument
843 if realm not in self.passwd:
844 self.passwd[realm] = {}
848 self.passwd[realm][reduced_uri] = (user, passwd)
851 domains = self.passwd.get(realm, {})
914 def add_password(self, realm, uri, user, passwd, is_authenticated=False): argument
918 super().add_password(None, uri, user, passwd)
919 super().add_password(realm, uri, user, passwd)
[all …]
/aosp_15_r20/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/sysroot/usr/include/
Dpwd.h49 /* The passwd structure. */
50 struct passwd struct
85 extern struct passwd *getpwent (void);
95 extern struct passwd *fgetpwent (FILE *__stream);
103 extern int putpwent (const struct passwd *__restrict __p,
111 extern struct passwd *getpwuid (__uid_t __uid);
117 extern struct passwd *getpwnam (const char *__name);
140 extern int getpwent_r (struct passwd *__restrict __resultbuf,
142 struct passwd **__restrict __result);
146 struct passwd *__restrict __resultbuf,
[all …]
/aosp_15_r20/external/ltp/
H A DIDcheck.sh41 passwd="$DESTDIR/etc/passwd"
72 for i in "$passwd" "$group"; do
79 fe root "$passwd"; NO_ROOT_ID=$?
80 fe bin "$passwd"; NO_BIN_ID=$?
81 fe daemon "$passwd"; NO_DAEMON_ID=$?
82 fe nobody "$passwd"; NO_NOBODY_ID=$?
97 echo "Password file: $passwd"
115 if ! touch "$group" "$passwd" 2>/dev/null; then
116 echo "Failed to touch $group or $passwd"
131 if ! fe "$name" "$passwd" && [ $no_id -ne 0 ] ; then
[all …]
/aosp_15_r20/bionic/tests/headers/posix/
H A Dpwd_h.c34 TYPE(struct passwd); in pwd_h()
35 STRUCT_MEMBER(struct passwd, char*, pw_name); in pwd_h()
36 STRUCT_MEMBER(struct passwd, uid_t, pw_uid); in pwd_h()
37 STRUCT_MEMBER(struct passwd, gid_t, pw_gid); in pwd_h()
38 STRUCT_MEMBER(struct passwd, char*, pw_dir); in pwd_h()
39 STRUCT_MEMBER(struct passwd, char*, pw_shell); in pwd_h()
46 FUNCTION(getpwent, struct passwd* (*f)(void)); in pwd_h()
47 FUNCTION(getpwnam, struct passwd* (*f)(const char*)); in pwd_h()
48 FUNCTION(getpwnam_r, int (*f)(const char*, struct passwd*, char*, size_t, struct passwd**)); in pwd_h()
49 FUNCTION(getpwuid, struct passwd* (*f)(uid_t)); in pwd_h()
[all …]
/aosp_15_r20/external/toybox/tests/
H A Duseradd.test25 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] &&
31 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] &&
37 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] &&
43 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] &&
50 grep '^$user:' /etc/passwd $arg && [ -d /home/$user ] &&
56 grep '^$user:.*dir' /etc/passwd $arg && [ -d $PWD/dir ] &&
63 grep '^$user:.*$gecos' /etc/passwd $arg && [ -d /home/$user ] &&
69 grep '^$user:.*$shl$' /etc/passwd $arg && [ -d /home/$user ] &&
76 grep '^$user:.*:.*:$g_id:.*' /etc/passwd $arg && [ -d /home/$user ] &&
81 grep '^$user:.*:.*:.*' /etc/passwd $arg && [ ! -e /home/$user ] &&
[all …]
/aosp_15_r20/external/python/cpython2/Lib/
Dftplib.py9 >>> ftp.login() # default, i.e.: user anonymous, passwd anonymous@
84 host, user, passwd, acct, timeout
115 # and user, passwd, acct (for login())
116 def __init__(self, host='', user='', passwd='', acct='', argument
122 self.login(user, passwd, acct)
380 def login(self, user = '', passwd = '', acct = ''): argument
383 if not passwd: passwd = ''
385 if user == 'anonymous' and passwd in ('', '-'):
393 passwd = passwd + 'anonymous@'
395 if resp[0] == '3': resp = self.sendcmd('PASS ' + passwd)
[all …]
Durllib.py521 if user: user, passwd = splitpasswd(user)
522 else: passwd = None
525 passwd = passwd or ''
550 ftpwrapper(user, passwd, host, port, dirs)
738 user, passwd = self.get_user_passwd(proxyhost, realm, i)
739 if not (user or passwd): return None
740 proxyhost = quote(user, safe='') + ':' + quote(passwd, safe='') + '@' + proxyhost
755 user, passwd = self.get_user_passwd(proxyhost, realm, i)
756 if not (user or passwd): return None
757 proxyhost = quote(user, safe='') + ':' + quote(passwd, safe='') + '@' + proxyhost
[all …]
/aosp_15_r20/external/one-true-awk/testdir/
H A DT.redir5 $awk '{ print >"foo" }' /etc/passwd
6 diff foo /etc/passwd || echo 'BAD: T.redir (print >"foo")'
9 $awk '{ print >>"foo" }' /etc/passwd
10 diff foo /etc/passwd || echo 'BAD: T.redir (print >>"foo")'
14 NR%2 == 0 { print >"foo" }' /etc/passwd
15 diff foo /etc/passwd || echo 'BAD: T.redir (print > and >>"foo")'
18 $awk '{ print | "cat >foo" }' /etc/passwd
19 diff foo /etc/passwd || echo 'BAD: T.redir (print | "cat >foo")'
31 $awk '{ print >"/dev/stderr" }' /etc/passwd 1>foo1 2>foo2
32 diff foo2 /etc/passwd || echo 'BAD: T.redir (print >"/dev/stderr")'
[all …]
H A DT.getline27 while (getline <"/etc/passwd")
32 cmp -s /etc/passwd foo || echo 'BAD: T.getline (getline <file)'
34 cat /etc/passwd | $awk '
41 cmp -s /etc/passwd foo || echo 'BAD: T.getline (getline <"-")'
49 ' /etc/passwd >foo
50 cmp -s /etc/passwd foo || echo 'BAD: T.getline (getline <arg)'
58 ' /etc/passwd >foo
59 cmp -s /etc/passwd foo || echo 'BAD: T.getline (getline x <arg)'
67 ' /etc/passwd >foo
68 cmp -s /etc/passwd foo || echo 'BAD: T.getline (cat arg | getline)'
[all …]
/aosp_15_r20/external/selinux/policycoreutils/run_init/
H A Drun_init.c27 * If you choose not to use PAM, make sure you have a shadow passwd file
28 * in /etc/shadow. You can use a simlink if your shadow passwd file
35 * setuid root, so that it can read the shadow passwd file.
92 * the passwd file.
105 static int authenticate_via_pam(const struct passwd *p_passwd_line) in authenticate_via_pam()
152 * All shadow passwd code goes in this section.
157 #include <shadow.h> /* for shadow passwd functions */
173 * the passwd file.
178 * shadow passwd file.
181 * This function uses the shadow passwd file to authenticate the user running
[all …]
/aosp_15_r20/external/toybox/toys/pending/
H A Duseradd.c46 struct passwd pwd;
63 // add_user(), add a new entry in /etc/passwd, /etc/shadow files
74 struct passwd *pw = getpwuid(getuid());
114 * 1. add an entry to /etc/passwd and /etcshadow file
116 * 3. update the user passwd by running 'passwd' utility
119 // 1. add an entry to /etc/passwd and /etc/shadow file
123 update_password("/etc/passwd", pwd.pw_name, entry, 0);
128 (unsigned)(time(NULL))/(24*60*60)); //passwd is not set initially
130 (unsigned)(time(0))/(24*60*60)); //passwd is not set initially
150 //3. update the user passwd by running 'passwd' utility
[all …]
/aosp_15_r20/external/scrypt/patches/
H A Duse_openssl_pbkdf2.patch17 @@ -256,7 +260,11 @@ crypto_scrypt(const uint8_t * passwd, size_t passwdlen,
22 + PKCS5_PBKDF2_HMAC((const char *)passwd, passwdlen, salt, saltlen, 1, EVP_sha256(), p * 128 * r, B…
24 PBKDF2_SHA256(passwd, passwdlen, salt, saltlen, 1, B, p * 128 * r);
29 @@ -265,7 +273,11 @@ crypto_scrypt(const uint8_t * passwd, size_t passwdlen,
34 + PKCS5_PBKDF2_HMAC((const char *)passwd, passwdlen, B, p * 128 * r, 1, EVP_sha256(), buflen, buf);
36 PBKDF2_SHA256(passwd, passwdlen, B, p * 128 * r, 1, buf, buflen);
57 @@ -332,7 +336,11 @@ crypto_scrypt(const uint8_t * passwd, size_t passwdlen,
62 + PKCS5_PBKDF2_HMAC((const char *)passwd, passwdlen, salt, saltlen, 1, EVP_sha256(), p * 128 * r, B…
64 PBKDF2_SHA256(passwd, passwdlen, salt, saltlen, 1, B, p * 128 * r);
69 @@ -341,7 +349,11 @@ crypto_scrypt(const uint8_t * passwd, size_t passwdlen,
[all …]
/aosp_15_r20/build/make/tools/fs_config/
H A DAndroid.bp78 // Generate the */etc/passwd text files for the target
84 …cmd: "$(location fs_config_generator) passwd --partition=system --aid-header=$(location :android_f…
89 out: ["passwd"],
94 filename: "passwd",
101 …cmd: "$(location fs_config_generator) passwd --partition=vendor --aid-header=$(location :android_f…
106 out: ["passwd"],
111 filename: "passwd",
119 …cmd: "$(location fs_config_generator) passwd --partition=odm --aid-header=$(location :android_file…
124 out: ["passwd"],
129 filename: "passwd",
[all …]
/aosp_15_r20/external/musl/include/
H A Dpwd.h20 struct passwd { struct
33 struct passwd *getpwent (void); argument
36 struct passwd *getpwuid (uid_t);
37 struct passwd *getpwnam (const char *);
38 int getpwuid_r (uid_t, struct passwd *, char *, size_t, struct passwd **);
39 int getpwnam_r (const char *, struct passwd *, char *, size_t, struct passwd **);
42 struct passwd *fgetpwent(FILE *);
43 int putpwent(const struct passwd *, FILE *);
/aosp_15_r20/external/trusty/musl/include/
Dpwd.h20 struct passwd { struct
33 struct passwd *getpwent (void); argument
36 struct passwd *getpwuid (uid_t);
37 struct passwd *getpwnam (const char *);
38 int getpwuid_r (uid_t, struct passwd *, char *, size_t, struct passwd **);
39 int getpwnam_r (const char *, struct passwd *, char *, size_t, struct passwd **);
42 struct passwd *fgetpwent(FILE *);
43 int putpwent(const struct passwd *, FILE *);
/aosp_15_r20/prebuilts/build-tools/sysroots/aarch64-unknown-linux-musl/include/
H A Dpwd.h20 struct passwd { struct
33 struct passwd *getpwent (void); argument
36 struct passwd *getpwuid (uid_t);
37 struct passwd *getpwnam (const char *);
38 int getpwuid_r (uid_t, struct passwd *, char *, size_t, struct passwd **);
39 int getpwnam_r (const char *, struct passwd *, char *, size_t, struct passwd **);
42 struct passwd *fgetpwent(FILE *);
43 int putpwent(const struct passwd *, FILE *);

12345678910>>...71