Lines Matching refs:file
5 * you may not use this file except in compliance with the License.
60 * Sets the security context for newly created file objects.
67 * Change the security context of an existing file object.
68 * @param path representing the path of file object to relabel.
75 * Get the security context of a file object.
76 * @param path the pathname of the file object.
133 * Restores a file to its default SELinux security context.
139 * @param pathname The pathname of the file to be relabeled.
149 * Restores a file to its default SELinux security context.
155 * @param pathname The pathname of the file to be relabeled.
161 * Restores a file to its default SELinux security context.
167 * @param file The File object representing the path to be relabeled.
169 * @exception NullPointerException if the file is a null object.
171 public static boolean restorecon(File file) throws NullPointerException {
173 return native_restorecon(file.getCanonicalPath(), 0);
176 file.getPath(), e);
189 public static boolean restoreconRecursive(File file) {
191 return native_restorecon(file.getCanonicalPath(), SELINUX_ANDROID_RESTORECON_RECURSE);
194 file.getPath(), e);