case 0x517B: return "smb";
case 0x4d44: return "msdos";
case 0x4006: return "fat";
- //case 0x43415d53: return "smackfs";
+ case 0x43415d53: return "smackfs";
case 0x73717368: return "squashfs";
default: return "unknown";
}
help
usage: cp [-Z]
- set SMACK security context of destination file to default type
+ set security context of destination file to default type
config MV
bool "mv"
TT.c.context = NULL;
if (!CFG_TOYBOX_LSM_NONE && lsm_enabled()) {
if (0>lsm_lget_context(src, &TT.c.context))
- perror_exit("unknown SMACK label for '%s'", src);
+ perror_exit("unknown security context for '%s'", src);
if (0>lsm_set_create(TT.c.context))
perror_exit("preserve context '%s' failed", TT.c.context);
free(TT.c.context);
if (toys.optflags & FLAG_Z) TT.c.context = lsm_context();
else {
if (0>lsm_lget_context(src, &TT.c.context))
- perror_exit("unknown SMACK label for '%s'", src);
+ perror_exit("unknown security context for '%s'", src);
}
} else error_exit("%s disabled", lsm_name());
}