class Terminalwire::Client::Entitlement::RootPolicy
def binary_path
def binary_path root_path.join("bin") end
def binary_pattern
def binary_pattern binary_path.join("*") end
def initialize(*, **, &)
def initialize(*, **, &) # Make damn sure the authority is set to Terminalwire. super(*, authority: HOST, **, &) # Now setup special permitted paths. @paths.permit root_path @paths.permit root_pattern # Permit terminalwire to grant execute permissions to the binary stubs. @paths.permit binary_pattern, mode: BINARY_PATH_FILE_MODE end
def root_pattern
Grant access to the `~/.terminalwire/**/*` path so users can install
def root_pattern root_path.join("**/*") end