Class: Bwrap::Args::Features::BashBinds Private

Inherits:
Object
  • Object
show all
Defined in:
lib/bwrap/args/features.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Implementation for Bash feature set.

Instance Method Summary collapse

Instance Method Details

#bash_mountsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Mounts stuff like /bin/bash.



23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/bwrap/args/features.rb', line 23

def bash_mounts
  mounts = []

  if File.file? "/bin/bash"
    mounts << "--ro-bind" << "/bin/bash" << "/bin/bash"
  end
  if File.file? "/usr/bin/bash"
    mounts << "--ro-bind" << "/usr/bin/bash" << "/usr/bin/bash"
  end

  mounts
end