fscryptctl add_key- add an encryption key to a filesystem fscryptctl remove_key- remove an encryption key from a filesystem fscryptctl key_status- get the status of an encryption key on a filesystem fscryptctl get_policy- get the encryption policy of a file or directory ...
static int cmd_add_key(int argc, char *const argv[]) { handle_no_options(&argc, &argv); if (argc != 1) { fputs("error: must specify a single mountpoint\n", stderr); return EXIT_FAILURE; } const char *mountpoint = argv[0]; struct fscrypt_add_key_arg *arg = ca...