Failed to create secure directory with ACL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello !

The home folders of my users are shared through a CIFS server that
support Access Control Lists. Pulse audio won't start in those folders
complaining "Failed to create secure directory: Permission denied".

$strace -v pulseaudio
...
mkdir("/home/teachers/pellegrb/.pulse", 0700) = 0
umask(022)                              = 077
open("/home/teachers/pellegrb/.pulse",
O_RDONLY|O_NOCTTY|O_NOFOLLOW|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFDIR|0775, st_size=0, ...}) = 0
getuid()                                = 3000137
getgid()                                = 3000038
fchown(4, 3000137, 3000038)             = 0
fchmod(4, 0700)                         = 0
close(4)                                = 0
lstat("/home/teachers/pellegrb/.pulse", {st_dev=makedev(0, 19),
st_ino=6293841, st_mode=S_IFDIR|0770, st_nlink=2, st_uid=3000137,
st_gid=3000038, st_blksize=16384, st_blocks=0, st_size=0,
st_atime=2014/04/07-13:40:13, st_mtime=2014/04/07-13:40:13,
st_ctime=2014/04/07-13:55:15}) = 0
rmdir("/home/teachers/pellegrb/.pulse") = 0
...

As I understand, the UID and GID are correct but Pulseaudio think the
mode 0770 is problematic. In core-util.c, this test fail :

if (!S_ISDIR(st.st_mode) ||
        (st.st_uid != uid) ||
        (st.st_gid != gid) ||
        ((st.st_mode & 0777) != m)) {
        errno = EACCES;
        goto fail;
    }


But the following commands in terminal :

$mkdir /home/teachers/pellegrb/.pulse
$chown 3000137:3000038 /home/teachers/pellegrb/.pulse
$chmod 0700 /home/teachers/pellegrb/.pulse
$ls -al /home/teachers/pellegrb

drwxrwx---+  2 pellegrb teachers     0 avril  7 14:02 .pulse

$getfacl /home/teachers/pellegrb/.pulse

# file: home/teachers/pellegrb/.pulse
# owner: pellegrb
# group: teachers
user::rwx
user:3000038:r-x
group::---
group:teachers:r-x
group:3000137:rwx
mask::rwx
other::---
default:user::rwx
default:user:pellegrb:rwx
default:group::r-x
default:group:teachers:r-x
default:mask::rwx
default:other::r-x

Every seems correct in the ACL sense. How can I fix this warning ? (In
reality all the home folders are secured and the chmod is useless)

Thanks !


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux