bindmount(2) - SerenityOS man pages

Name

bindmount - create a bindmount from source_fd to a target path.

Synopsis

#include <LibCore/System.h>

ErrorOr<void> bindmount(int source_fd, StringView target, int flags);

Description

bindmount() create a bindmount from source_fd to a target path target, with mount flags of flags.

The following flags are supported:

These flags can be used as a security measure to limit the possible abuses of the mounted file system.

Errors

All of the usual path resolution errors may also occur.

See also