Skip to content

vomsdir/vomses permission check fails when using cvmfs directories #6150

@marianne013

Description

@marianne013

When testing a python3 UI on cvmfs I run into a problem when using
/cvmfs/grid.cern.ch/etc/grid-security/vomses (permissions: 775)
and similar locations for my X509 variables
This is caused by

if (pathMode & allPerms) ^ requiredDirPerms:

which seems to expect the permissions to be 755
It then triggers the shutil bug mentioned in the code (https://bugs.python.org/issue44205) and any DIRAC command using this crashes.

@chrisburr @sfayer is pondering why you aren't using os.access instead ?
And I am wondering why you check for anything beyond read and execute access ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions