Module: OS::Linux::Sandbox::ClassMethods Private

Extended by:
T::Helpers
Defined in:
extend/os/linux/sandbox.rb

This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.

Instance Method Summary collapse

Instance Method Details

#available?Boolean

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:

  • (Boolean)


45
46
47
# File 'extend/os/linux/sandbox.rb', line 45

def available?
  ::Sandbox::Landlock.available?
end

#failure_reasonString?

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:



65
66
67
68
69
# File 'extend/os/linux/sandbox.rb', line 65

def failure_reason
  return super if self != ::Sandbox

  ::Sandbox::Landlock.failure_reason
end

#full_write_isolation?Boolean

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:

  • (Boolean)


50
51
52
# File 'extend/os/linux/sandbox.rb', line 50

def full_write_isolation?
  ::Sandbox::Landlock.full_write_isolation?
end

#reset_state!void

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

This method returns an undefined value.



60
61
62
# File 'extend/os/linux/sandbox.rb', line 60

def reset_state!
  ::Sandbox::Landlock.reset_state!
end

#stateSymbol

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:



55
56
57
# File 'extend/os/linux/sandbox.rb', line 55

def state
  ::Sandbox::Landlock.state
end

#terminal_ioctl_requestInteger

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

ioctl request used to attach the sandboxed child to a controlling TTY.

Returns:



73
74
75
# File 'extend/os/linux/sandbox.rb', line 73

def terminal_ioctl_request
  TIOCSCTTY
end