char *name;
struct dom_sid sid;
enum lsa_SidType type;
- uint32 rights;
+ uint32_t rights;
struct afs_ace *next;
};
struct afs_iob {
char *in, *out;
- uint16 in_size, out_size;
+ uint16_t in_size, out_size;
};
static struct afs_ace *new_afs_ace(TALLOC_CTX *mem_ctx,
bool positive,
- const char *name, uint32 rights)
+ const char *name, uint32_t rights)
{
struct dom_sid sid;
enum lsa_SidType type;
static void add_afs_ace(struct afs_acl *acl,
bool positive,
- const char *name, uint32 rights)
+ const char *name, uint32_t rights)
{
struct afs_ace *ace;
const char *namep;
fstring name;
- uint32 rights;
+ uint32_t rights;
char *space;
namep = p;
return true;
}
-static uint32 afs_to_nt_file_rights(uint32 rights)
+static uint32_t afs_to_nt_file_rights(uint32_t rights)
{
- uint32 result = 0;
+ uint32_t result = 0;
if (rights & PRSFS_READ)
result |= FILE_READ_DATA | FILE_READ_EA |
return result;
}
-static void afs_to_nt_dir_rights(uint32 afs_rights, uint32 *nt_rights,
- uint8 *flag)
+static void afs_to_nt_dir_rights(uint32_t afs_rights, uint32_t *nt_rights,
+ uint8_t *flag)
{
*nt_rights = 0;
*flag = SEC_ACE_FLAG_OBJECT_INHERIT |
#define PERMS_FULL 0x001f01ff
static struct static_dir_ace_mapping {
- uint8 type;
- uint8 flags;
- uint32 mask;
- uint32 afs_rights;
+ uint8_t type;
+ uint8_t flags;
+ uint32_t mask;
+ uint32_t afs_rights;
} ace_mappings[] = {
/* Full control */
{ 0, 0, 0, 9999 }
};
-static uint32 nt_to_afs_dir_rights(const char *filename, const struct security_ace *ace)
+static uint32_t nt_to_afs_dir_rights(const char *filename, const struct security_ace *ace)
{
- uint32 result = 0;
- uint32 rights = ace->access_mask;
- uint8 flags = ace->flags;
+ uint32_t result = 0;
+ uint32_t rights = ace->access_mask;
+ uint8_t flags = ace->flags;
struct static_dir_ace_mapping *m;
return result;
}
-static uint32 nt_to_afs_file_rights(const char *filename, const struct security_ace *ace)
+static uint32_t nt_to_afs_file_rights(const char *filename, const struct security_ace *ace)
{
- uint32 result = 0;
- uint32 rights = ace->access_mask;
+ uint32_t result = 0;
+ uint32_t rights = ace->access_mask;
if (rights & (GENERIC_READ_ACCESS|FILE_READ_DATA)) {
result |= PRSFS_READ;
static size_t afs_to_nt_acl_common(struct afs_acl *afs_acl,
SMB_STRUCT_STAT *psbuf,
- uint32 security_info,
+ uint32_t security_info,
TALLOC_CTX *mem_ctx,
struct security_descriptor **ppdesc)
{
while (afs_ace != NULL) {
uint32_t nt_rights;
- uint8 flag = SEC_ACE_FLAG_OBJECT_INHERIT |
+ uint8_t flag = SEC_ACE_FLAG_OBJECT_INHERIT |
SEC_ACE_FLAG_CONTAINER_INHERIT;
if (afs_ace->type == SID_NAME_UNKNOWN) {
static size_t afs_to_nt_acl(struct afs_acl *afs_acl,
struct connection_struct *conn,
struct smb_filename *smb_fname,
- uint32 security_info,
+ uint32_t security_info,
TALLOC_CTX *mem_ctx,
struct security_descriptor **ppdesc)
{
static size_t afs_fto_nt_acl(struct afs_acl *afs_acl,
struct files_struct *fsp,
- uint32 security_info,
+ uint32_t security_info,
TALLOC_CTX *mem_ctx,
struct security_descriptor **ppdesc)
{
}
static bool nt_to_afs_acl(const char *filename,
- uint32 security_info_sent,
+ uint32_t security_info_sent,
const struct security_descriptor *psd,
- uint32 (*nt_to_afs_rights)(const char *filename,
+ uint32_t (*nt_to_afs_rights)(const char *filename,
const struct security_ace *ace),
struct afs_acl *afs_acl)
{
}
static NTSTATUS afs_set_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
- uint32 security_info_sent,
+ uint32_t security_info_sent,
const struct security_descriptor *psd)
{
struct afs_acl old_afs_acl, new_afs_acl;
static NTSTATUS afsacl_fget_nt_acl(struct vfs_handle_struct *handle,
struct files_struct *fsp,
- uint32 security_info,
+ uint32_t security_info,
TALLOC_CTX *mem_ctx,
struct security_descriptor **ppdesc)
{
}
static NTSTATUS afsacl_get_nt_acl(struct vfs_handle_struct *handle,
- const char *name, uint32 security_info,
+ const char *name, uint32_t security_info,
TALLOC_CTX *mem_ctx,
struct security_descriptor **ppdesc)
{
static NTSTATUS afsacl_fset_nt_acl(vfs_handle_struct *handle,
files_struct *fsp,
- uint32 security_info_sent,
+ uint32_t security_info_sent,
const struct security_descriptor *psd)
{
return afs_set_nt_acl(handle, fsp, security_info_sent, psd);