[lldb] Add an option to inherit TCC permissions from parent.
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 5 Aug 2020 17:02:51 +0000 (10:02 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 5 Aug 2020 17:08:28 +0000 (10:08 -0700)
commit249a1d4f1bed2f2be5781a90b5d4bce8791d338b
treec697da8d90c884ca608808906d32f7db2060ae20
parent882d8e60dd40c01c74b4e16b02cf7ca02e846434
[lldb] Add an option to inherit TCC permissions from parent.

Add an option that allows the user to decide to not make the inferior is
responsible for its own TCC permissions. If you don't make the inferior
responsible, it inherits the permissions of its parent. The motivation
is the scenario of running the LLDB test suite from an external hard
drive. If the inferior is responsible, every test needs to be granted
access to the external volume. When the permissions are inherited,
approval needs to be granted only once.

Differential revision: https://reviews.llvm.org/D85237
lldb/include/lldb/Target/Target.h
lldb/include/lldb/lldb-enumerations.h
lldb/packages/Python/lldbsuite/test/lldbtest.py
lldb/source/Commands/CommandObjectProcess.cpp
lldb/source/Host/macosx/objcxx/Host.mm
lldb/source/Target/Target.cpp
lldb/source/Target/TargetProperties.td
lldb/test/Shell/lit-lldb-init.in