/haiku/src/add-ons/kernel/file_systems/netfs/headers/shared/ |
H A D | Permissions.h | 29 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 D | NetFSServerPrefs.cpp | 71 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 D | NetFSServerRoster.h | 39 const char* user, uint32 permissions); 41 const char* user, uint32* permissions);
|
H A D | NetFSServerRoster.cpp | 301 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 D | netfs-server | 16 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 D | PackageEntry.h | 45 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 D | PackageEntry.h | 47 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 D | Statable.cpp | 160 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 D | function_remapper.cpp | 218 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 D | remapped_functions.h | 42 int _haiku_build_open(const char* path, int openMode, mode_t permissions); 44 mode_t permissions);
|
/haiku/src/tools/fs_shell/ |
H A D | fssh.cpp | 269 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 D | NetFSServer.cpp | 574 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 D | UserSecurityContext.cpp | 60 Permissions permissions) in AddNode() argument 62 return fPermissions->Put(NodeRef(volumeID, nodeID), permissions); in AddNode()
|
H A D | UserSecurityContext.h | 22 Permissions permissions);
|
H A D | SecurityContext.h | 109 User* user, Permissions permissions); 111 User* user, Permissions permissions);
|
H A D | SecurityContext.cpp | 458 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 D | Statable.dox | 37 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 D | Directory.dox | 131 \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 D | Statable.h | 45 status_t GetPermissions(mode_t* permissions) const; 46 status_t SetPermissions(mode_t permissions);
|
/haiku/src/kits/network/libnetservices/ |
H A D | FileRequest.cpp | 168 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 D | mman.cpp | 212 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 D | mman.h | 67 int shm_open(const char* name, int openMode, mode_t permissions);
|
/haiku/headers/private/kernel/boot/ |
H A D | vfs.h | 77 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 D | Directory.h | 44 virtual status_t CreateFile(const char *name, mode_t permissions,
|
/haiku/src/system/boot/loader/ |
H A D | vfs.cpp | 288 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()
|