+
+LTTNG_HIDDEN
+int run_as_unlink(const char *path, uid_t uid, gid_t gid)
+{
+ struct run_as_unlink_data data;
+
+ DBG3("unlink() %s with for uid %d and gid %d",
+ path, uid, gid);
+ data.path = path;
+ return run_as(_unlink, &data, uid, gid);
+}
+
+LTTNG_HIDDEN
+int run_as_recursive_rmdir(const char *path, uid_t uid, gid_t gid)
+{
+ struct run_as_recursive_rmdir_data data;
+
+ DBG3("recursive_rmdir() %s with for uid %d and gid %d",
+ path, uid, gid);
+ data.path = path;
+ return run_as(_recursive_rmdir, &data, uid, gid);
+}