Home
last modified time | relevance | path

Searched refs:permissions (Results 1 – 25 of 125) sorted by relevance

12345

/haiku/src/add-ons/kernel/file_systems/netfs/headers/shared/
H A DPermissions.h29 inline Permissions(uint32 permissions);
34 inline Permissions& AddPermissions(uint32 permissions);
35 inline Permissions& AddPermissions(Permissions permissions);
37 inline bool Implies(uint32 permissions) const;
66 Permissions::Permissions(uint32 permissions) in Permissions() argument
67 : fPermissions(permissions) in Permissions()
89 Permissions::AddPermissions(uint32 permissions) in AddPermissions() argument
91 fPermissions |= permissions; in AddPermissions()
98 Permissions::AddPermissions(Permissions permissions) in AddPermissions() argument
100 fPermissions |= permissions.fPermissions; in AddPermissions()
[all …]
/haiku/src/add-ons/kernel/file_systems/netfs/netfs_server_prefs/
H A DNetFSServerPrefs.cpp71 get_permissions_string(uint32 permissions, char* str) in get_permissions_string() argument
73 str[0] = (permissions & kMountPermission ? 'm' : '-'); in get_permissions_string()
74 str[1] = (permissions & kReadPermission ? 'r' : '-'); in get_permissions_string()
75 str[2] = (permissions & kWritePermission ? 'w' : '-'); in get_permissions_string()
76 str[3] = (permissions & kQueryPermission ? 'q' : '-'); in get_permissions_string()
83 get_permissions(const char* str, uint32* permissions) in get_permissions() argument
85 *permissions = 0; in get_permissions()
93 *permissions |= kMountPermission; in get_permissions()
96 *permissions |= kReadPermission; in get_permissions()
99 *permissions |= kWritePermission; in get_permissions()
[all …]
H A DNetFSServerRoster.h39 const char* user, uint32 permissions);
41 const char* user, uint32* permissions);
H A DNetFSServerRoster.cpp301 uint32 permissions) in SetUserPermissions() argument
311 || request.AddInt32("permissions", (int32)permissions)) { in SetUserPermissions()
322 uint32* permissions) in GetUserPermissions() argument
326 || !permissions) { in GetUserPermissions()
344 if (reply.FindInt32("permissions", (int32*)permissions) != B_OK) in GetUserPermissions()
/haiku/src/add-ons/kernel/file_systems/netfs/
H A Dnetfs-server16 permissions mount query read write
23 permissions mount query read write
30 # permissions mount query read write
37 # permissions mount query read write
40 # permissions mount query read
/haiku/headers/os/package/hpkg/
H A DPackageEntry.h45 void SetPermissions(uint32 permissions);
83 BPackageEntry::SetPermissions(uint32 permissions) in SetPermissions() argument
85 fMode = (fMode & ~(uint32)ALLPERMS) | (permissions & ALLPERMS); in SetPermissions()
/haiku/headers/os/package/hpkg/v1/
H A DPackageEntry.h47 void SetPermissions(uint32 permissions);
85 BPackageEntry::SetPermissions(uint32 permissions) in SetPermissions() argument
87 fMode = (fMode & ~(uint32)ALLPERMS) | (permissions & ALLPERMS); in SetPermissions()
/haiku/src/kits/storage/
H A DStatable.cpp160 BStatable::GetPermissions(mode_t* permissions) const in GetPermissions()
162 status_t result = (permissions ? B_OK : B_BAD_VALUE); in GetPermissions()
169 *permissions = (stat.st_mode & S_IUMSK); in GetPermissions()
177 BStatable::SetPermissions(mode_t permissions) in SetPermissions() argument
182 stat.st_mode = permissions; in SetPermissions()
/haiku/src/build/libroot/
H A Dfunction_remapper.cpp218 mode_t permissions = 0; in open() local
224 permissions = va_arg(args, int); in open()
228 return _haiku_build_open(path, openMode, permissions); in open()
237 mode_t permissions = 0; in openat() local
243 permissions = va_arg(args, int); in openat()
247 return _haiku_build_openat(fd, path, openMode, permissions); in openat()
H A Dremapped_functions.h42 int _haiku_build_open(const char* path, int openMode, mode_t permissions);
44 mode_t permissions);
/haiku/src/tools/fs_shell/
H A Dfssh.cpp269 fssh_mode_t permissions = 0; in get_permissions() local
274 permissions = (permissions << 3) | (c - '0'); in get_permissions()
277 _permissions = permissions; in get_permissions()
358 std::string permissions; in list_entry() local
361 permissions += ((mode & FSSH_S_IRUSR) ? 'r' : '-'); in list_entry()
362 permissions += ((mode & FSSH_S_IWUSR) ? 'w' : '-'); in list_entry()
364 permissions += 's'; in list_entry()
366 permissions += ((mode & FSSH_S_IXUSR) ? 'x' : '-'); in list_entry()
368 permissions += ((mode & FSSH_S_IRGRP) ? 'r' : '-'); in list_entry()
369 permissions += ((mode & FSSH_S_IWGRP) ? 'w' : '-'); in list_entry()
[all …]
/haiku/src/add-ons/kernel/file_systems/netfs/server/
H A DNetFSServer.cpp574 Permissions permissions = fSecurityContext in MessageReceived() local
580 if (permissions.ImpliesMountSharePermission()) { in MessageReceived()
645 uint32 permissions; in MessageReceived() local
648 || message->FindInt32("permissions", (int32*)&permissions) in MessageReceived()
666 if (permissions == 0) { in MessageReceived()
670 user, permissions); in MessageReceived()
681 permissions); in MessageReceived()
711 Permissions permissions = fSecurityContext->GetNodePermissions( in MessageReceived() local
717 (int32)permissions.GetPermissions()); in MessageReceived()
861 Permissions permissions; in _LoadSecurityContext() local
[all …]
H A DUserSecurityContext.cpp60 Permissions permissions) in AddNode() argument
62 return fPermissions->Put(NodeRef(volumeID, nodeID), permissions); in AddNode()
H A DUserSecurityContext.h22 Permissions permissions);
H A DSecurityContext.h109 User* user, Permissions permissions);
111 User* user, Permissions permissions);
H A DSecurityContext.cpp458 uint32 permissions; in SecurityContext() local
459 error = userArchive.FindInt32(path, (int32*)&permissions); in SecurityContext()
461 error = SetNodePermissions(path, user, permissions); in SecurityContext()
935 Permissions permissions) in SetNodePermissions() argument
949 return fPermissions->Put(UserPath(path.GetString(), user), permissions); in SetNodePermissions()
955 Permissions permissions) in SetNodePermissions() argument
966 return fPermissions->Put(UserPath(path, user), permissions); in SetNodePermissions()
/haiku/docs/user/storage/
H A DStatable.dox37 SetGroup()), and permissions (GetPermissions() and SetPermissions()) of
168 \fn status_t BStatable::GetPermissions(mode_t* permissions) const
169 \brief Fills out \a perms with the permissions of the node.
171 \param permissions The permissions to get from the node.
181 \fn status_t BStatable::SetPermissions(mode_t permissions)
182 \brief Sets the node's permissions to \a perms.
184 \param permissions The permissions to set the node to.
H A DDirectory.dox131 \retval B_PERMISSION_DENIED Directory permissions didn't allow operation.
153 \retval B_PERMISSION_DENIED Directory permissions didn't allow operation.
175 \retval B_PERMISSION_DENIED Directory permissions didn't allow operation.
197 \retval B_PERMISSION_DENIED Directory permissions didn't allow operation.
222 \retval B_PERMISSION_DENIED Directory permissions didn't allow operation.
246 \retval B_PERMISSION_DENIED Directory permissions didn't allow operation.
291 \retval B_PERMISSION_DENIED Directory permissions didn't allow operation.
378 \retval B_PERMISSION_DENIED Directory permissions didn't allow operation.
407 \retval B_PERMISSION_DENIED Directory permissions didn't allow operation.
434 \retval B_PERMISSION_DENIED Directory permissions didn't allow operation.
[all …]
/haiku/headers/os/storage/
H A DStatable.h45 status_t GetPermissions(mode_t* permissions) const;
46 status_t SetPermissions(mode_t permissions);
/haiku/src/kits/network/libnetservices/
H A DFileRequest.cpp168 mode_t permissions; in _ProtocolLoop() local
169 if (entry.GetPermissions(&permissions) == B_OK) in _ProtocolLoop()
170 eplf << "up" << BString().SetToFormat("%03o", permissions) << ","; in _ProtocolLoop()
/haiku/src/system/libroot/posix/sys/
H A Dmman.cpp212 shm_open(const char* name, int openMode, mode_t permissions) in shm_open() argument
219 return open(path, openMode | O_CLOEXEC, permissions); in shm_open()
/haiku/headers/posix/sys/
H A Dmman.h67 int shm_open(const char* name, int openMode, mode_t permissions);
/haiku/headers/private/kernel/boot/
H A Dvfs.h77 virtual status_t CreateFile(const char *name, mode_t permissions,
173 mode_t permissions = 0);
/haiku/src/system/boot/loader/file_systems/fat/
H A DDirectory.h44 virtual status_t CreateFile(const char *name, mode_t permissions,
/haiku/src/system/boot/loader/
H A Dvfs.cpp288 Directory::CreateFile(const char *name, mode_t permissions, Node **_node) in CreateFile() argument
1030 mode_t permissions = 0; in open() local
1034 permissions = va_arg(args, int) /*& ~__gUmask*/; in open()
1040 RETURN_AND_SET_ERRNO(open_from(gRoot, name, mode, permissions)); in open()
1045 open_from(Directory *directory, const char *name, int mode, mode_t permissions) in open_from() argument
1103 error = directory->CreateFile(name, permissions, &node); in open_from()

12345