<commit_before>/*
 *  eXist Open Source Native XML Database
 *  Copyright (C) 2001-2011 The eXist-db Project
 *  http://exist-db.org
 *  
 *  This program is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public License
 *  as published by the Free Software Foundation; either version 2
 *  of the License, or (at your option) any later version.
 *  
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *  
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 * 
 *  $Id$
 */
package org.exist.security;

import java.io.IOException;
import org.exist.storage.io.VariableByteInput;
import org.exist.storage.io.VariableByteOutputStream;
import org.exist.util.SyntaxException;


public interface Permission {
	
    public final static int DEFAULT_COLLECTION_PERM = 0777;
    public final static int DEFAULT_RESOURCE_PERM = 0666;
    public final static int DEFAULT_UMASK = 022;
    
    public final static int DEFAULT_SYSTEM_COLLECTION_PERM = 0755;
    public final static int DEFAULT_SYSTSEM_RESOURCE_PERM = 0770;
    
    public final static int DEFAULT_SYSTEM_ETC_COLLECTION_PERM = 0755;
    public final static int DEFAULT_SYSTEM_SECURITY_COLLECTION_PERM = 0770;
    
    public final static int DEFAULT_TEMPORARY_DOCUMENT_PERM = 0771;

    public final static int SET_UID = 4;
    public final static int SET_GID = 2;
    public final static int STICKY = 1;

    public final static int READ = 4;
    public final static int WRITE = 2;
    public final static int EXECUTE = 1;
	
    public final static String USER_STRING = "user";
    public final static String GROUP_STRING = "group";
    public final static String OTHER_STRING = "other";

    public final static String READ_STRING = "read";
    public final static String WRITE_STRING = "write";
    public final static String EXECUTE_STRING = "execute";

    public final static char SETUID_CHAR = 's';
    public final static char SETUID_CHAR_NO_EXEC = 'S';
    public final static char SETGID_CHAR = 's';
    public final static char SETGID_CHAR_NO_EXEC = 'S';
    public final static char STICKY_CHAR = 't';<commit_msg>[ignore] Make octal values explicit<commit_after>/*
 *  eXist Open Source Native XML Database
 *  Copyright (C) 2001-2011 The eXist-db Project
 *  http://exist-db.org
 *  
 *  This program is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public License
 *  as published by the Free Software Foundation; either version 2
 *  of the License, or (at your option) any later version.
 *  
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *  
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 * 
 *  $Id$
 */
package org.exist.security;

import java.io.IOException;
import org.exist.storage.io.VariableByteInput;
import org.exist.storage.io.VariableByteOutputStream;
import org.exist.util.SyntaxException;


public interface Permission {
	
    public final static int DEFAULT_COLLECTION_PERM = 0777;
    public final static int DEFAULT_RESOURCE_PERM = 0666;
    public final static int DEFAULT_UMASK = 022;
    
    public final static int DEFAULT_SYSTEM_COLLECTION_PERM = 0755;
    public final static int DEFAULT_SYSTSEM_RESOURCE_PERM = 0770;
    
    public final static int DEFAULT_SYSTEM_ETC_COLLECTION_PERM = 0755;
    public final static int DEFAULT_SYSTEM_SECURITY_COLLECTION_PERM = 0770;
    
    public final static int DEFAULT_TEMPORARY_DOCUMENT_PERM = 0771;

    public final static int SET_UID = 04;
    public final static int SET_GID = 02;
    public final static int STICKY = 01;

    public final static int READ = 04;
    public final static int WRITE = 02;
    public final static int EXECUTE = 01;
	
    public final static String USER_STRING = "user";
    public final static String GROUP_STRING = "group";
    public final static String OTHER_STRING = "other";

    public final static String READ_STRING = "read";
    public final static String WRITE_STRING = "write";
    public final static String EXECUTE_STRING = "execute";

    public final static char SETUID_CHAR = 's';
    public final static char SETUID_CHAR_NO_EXEC = 'S';
    public final static char SETGID_CHAR = 's';
    public final static char SETGID_CHAR_NO_EXEC = 'S';
    public final static char STICKY_CHAR = 't';
{'fraction_non_alphanumeric': 0.06025538707102953, 'fraction_numerical': 0.02274541101356744, 'mean_word_length': 3.6632558139534885, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3817397', 'n_tokens_mistral': 1520, 'n_tokens_neox': 1398, 'n_words': 587}