search for: get_current_uid

Displaying 5 results from an estimated 5 matches for "get_current_uid".

2015 Apr 20
4
Samba 4 slow write
...ET_NT_ACL(), > and finally would reach getegid() and geteuid().[2] > > Hence strace said the top 2 records are getegid() and geteuid(). > > > [1] code snippet: > NTSTATUS smbd_check_access_rights(struct connection_struct *conn, > ... > if (!use_privs && get_current_uid(conn) == (uid_t)0) { > /* I'm sorry sir, I didn't know you were root... */ > DEBUG(10,("smbd_check_access_rights: root override " > "on %s. Granting 0x%x\n", > smb_fname_str_dbg(s...
2015 Apr 18
2
Samba 4 slow write
Hi all, On Thu, Apr 16, 2015 at 03:00:49PM -0700, Jeremy Allison wrote: > On Thu, Apr 16, 2015 at 08:42:48PM +0200, Ervin Heged?s wrote: > > Dear Samba users, > > > > here is an Ubuntu 14.04, with Samba 4 (4.1.6), and LDAP (slapd > > 2.4.31). The config came from a previous system (Debian Squeezy), > > which had been crashed (HW error - on this new machine,
2015 Apr 20
0
Samba 4 slow write
...] Non-admin users would go through SMB_VFS_GET_NT_ACL(), and finally would reach getegid() and geteuid().[2] Hence strace said the top 2 records are getegid() and geteuid(). [1] code snippet: NTSTATUS smbd_check_access_rights(struct connection_struct *conn, ... if (!use_privs && get_current_uid(conn) == (uid_t)0) { /* I'm sorry sir, I didn't know you were root... */ DEBUG(10,("smbd_check_access_rights: root override " "on %s. Granting 0x%x\n", smb_fname_str_dbg(smb_fname),...
2015 Apr 22
0
Samba 4 slow write
...ster than this... > > What should be the solution? Do you have any idea? > Hmm my guess the difference is made by in-memory cache lookup[1], samba-3 with it. But samba-4 without it, so non-admin users reach gete{uid, gid} heavily, admin users could ease this pain because earlier return by get_current_uid(). Here is my test to imply this guess, test-bench is uploading 5,000 files and each one is 1MB. Case A) samba-3.6.25 without modification, strace show nothing through gete{uid, gid}, and spent 85 seconds on uploading. Case B) Remove cache lookup from samba-3.6.25, strace show syscalls to gete{u...
2015 Apr 22
4
Samba 4 slow write
...idea? >> > >> >> Hmm my guess the difference is made by in-memory cache lookup[1], >> samba-3 with it. >> But samba-4 without it, >> so non-admin users reach gete{uid, gid} heavily, >> admin users could ease this pain because earlier return by >> get_current_uid(). > >ok, this is new for me - but I don't know, what can I do now... > >> Here is my test to imply this guess, >> test-bench is uploading 5,000 files and each one is 1MB. >> >> Case A) samba-3.6.25 without modification, >> strace show nothing through get...