Skip to content

LINC-Switch build fails on NFS (or other) file system without setuid/setcap permission #355

@lantz

Description

@lantz

It appears that during the build the following command is run:

sudo setcap cap_net_admin=ep ./rel/linc/erts-5.10.4/bin/beam.smp

Most NFS mounts (along with other shared file system mounts) don't permit setuid/setcap to be set on executables (this is a recommended best practice for configuration), so this command, and the make, fails with a confusing error message:

==> rel (generate)
Failed to set capabilities on file `./rel/linc/erts-5.10.4/bin/beam.smp' (Invalid argument)
The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file
make: *** [rel] Error 1

It would be better if the build would actually complete and if you could either a) install the switch in a place like /usr/local/bin or /usr/bin, which are more likely to permit setuid, or b) if setuid/setcap fails, that the switch could be invoked using sudo if necessary

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