sd_bus_error *error) {
PrivateTmp *p = ASSERT_PTR(userdata);
- int b = *p != PRIVATE_TMP_OFF;
+ int b = *p != PRIVATE_TMP_NO;
return sd_bus_message_append_basic(reply, 'b', &b);
}
return r;
if (!UNIT_WRITE_FLAGS_NOOP(flags)) {
- c->private_tmp = v ? PRIVATE_TMP_CONNECTED : PRIVATE_TMP_OFF;
+ c->private_tmp = v ? PRIVATE_TMP_CONNECTED : PRIVATE_TMP_NO;
(void) unit_write_settingf(u, flags, name, "%s=%s", name, yes_no(v));
}
return false;
return context->private_users != PRIVATE_USERS_NO ||
- context->private_tmp != PRIVATE_TMP_OFF ||
+ context->private_tmp != PRIVATE_TMP_NO ||
context->private_devices ||
context->private_network ||
context->network_namespace_path ||
DEFINE_STRING_TABLE_LOOKUP(proc_subset, ProcSubset);
static const char* const private_tmp_table[_PRIVATE_TMP_MAX] = {
- [PRIVATE_TMP_OFF] = "off",
+ [PRIVATE_TMP_NO] = "no",
[PRIVATE_TMP_CONNECTED] = "connected",
[PRIVATE_TMP_DISCONNECTED] = "disconnected",
};
} ProcSubset;
typedef enum PrivateTmp {
- PRIVATE_TMP_OFF,
+ PRIVATE_TMP_NO,
PRIVATE_TMP_CONNECTED, /* Bind mounted from the host's filesystem */
PRIVATE_TMP_DISCONNECTED, /* A completely private tmpfs, invisible from the host */
_PRIVATE_TMP_MAX,
/* With DynamicUser= we want private directories, so if the user hasn't manually
* selected PrivateTmp=, enable it, but to a fully private (disconnected) tmpfs
* instance. */
- if (ec->private_tmp == PRIVATE_TMP_OFF)
+ if (ec->private_tmp == PRIVATE_TMP_NO)
ec->private_tmp = PRIVATE_TMP_DISCONNECTED;
ec->remove_ipc = true;
ec->protect_system = PROTECT_SYSTEM_STRICT;