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)


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

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

#failure_reason ⇒ String?

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:



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

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)


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

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.



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

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

#state ⇒ Symbol

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:



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

def state
  ::Sandbox::Landlock.state
end

#terminal_ioctl_request ⇒ Integer

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:



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

def terminal_ioctl_request
  TIOCSCTTY
end