Migrate selinux.cpp to selinux.rs

This commit is contained in:
topjohnwu
2025-04-26 03:56:37 -07:00
committed by John Wu
parent c7d1af9805
commit 73840f8721
19 changed files with 172 additions and 181 deletions
-16
View File
@@ -1,16 +0,0 @@
#pragma once
#include <base.hpp>
int setcon(const char *con);
int getfilecon(const char *path, byte_data con);
int lgetfilecon(const char *path, byte_data con);
int fgetfilecon(int fd, byte_data con);
int setfilecon(const char *path, const char *con);
int lsetfilecon(const char *path, const char *con);
int fsetfilecon(int fd, const char *con);
int getfilecon_at(int dirfd, const char *name, byte_data con);
void setfilecon_at(int dirfd, const char *name, const char *con);
void restorecon();
void restore_tmpcon();