2 Unix SMB/CIFS implementation.
3 SMB parameters and setup
4 Copyright (C) Andrew Tridgell 1992-1997
5 Copyright (C) Luke Kenneth Casson Leighton 1996-1997
6 Copyright (C) Paul Ashton 1997
7 Copyright (C) Simo Sorce 2003
8 Copyright (C) Gerald (Jerry) Carter 2004
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28 /* privilege bitmask */
30 #define SE_PRIV_MASKSIZE 4
33 uint32 mask
[SE_PRIV_MASKSIZE
];
37 /* common privilege defines */
39 #define SE_END { { 0x00000000, 0x00000000, 0x00000000, 0x00000000 } }
40 #define SE_NONE { { 0x00000000, 0x00000000, 0x00000000, 0x00000000 } }
41 #define SE_ALL_PRIVS { { 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF } }
45 * We will use our own set of privileges since it makes no sense
46 * to implement all of the Windows set when only a portion will
47 * be used. Use 128-bit mask to give room to grow.
50 #define SE_NETWORK_LOGON { { 0x00000001, 0x00000000, 0x00000000, 0x00000000 } }
51 #define SE_INTERACTIVE_LOGON { { 0x00000002, 0x00000000, 0x00000000, 0x00000000 } }
52 #define SE_BATCH_LOGON { { 0x00000004, 0x00000000, 0x00000000, 0x00000000 } }
53 #define SE_SERVICE_LOGON { { 0x00000008, 0x00000000, 0x00000000, 0x00000000 } }
54 #define SE_MACHINE_ACCOUNT { { 0x00000010, 0x00000000, 0x00000000, 0x00000000 } }
55 #define SE_PRINT_OPERATOR { { 0x00000020, 0x00000000, 0x00000000, 0x00000000 } }
56 #define SE_ADD_USERS { { 0x00000040, 0x00000000, 0x00000000, 0x00000000 } }
57 #define SE_DISK_OPERATOR { { 0x00000080, 0x00000000, 0x00000000, 0x00000000 } }
58 #define SE_REMOTE_SHUTDOWN { { 0x00000100, 0x00000000, 0x00000000, 0x00000000 } }
60 /* defined in lib/privilegs.c */
62 extern const SE_PRIV se_machine_account
;
63 extern const SE_PRIV se_print_operator
;
64 extern const SE_PRIV se_add_users
;
65 extern const SE_PRIV se_disk_operators
;
66 extern const SE_PRIV se_remote_shutdown
;
70 * These are used in Lsa replies (srv_lsa_nt.c)
72 #define PR_NONE 0x0000
73 #define PR_LOG_ON_LOCALLY 0x0001
74 #define PR_ACCESS_FROM_NETWORK 0x0002
75 #define PR_LOG_ON_BATCH_JOB 0x0004
76 #define PR_LOG_ON_SERVICE 0x0010
81 #define _BOOL /* So we don't typedef BOOL again in vfs.h */
90 typedef struct LUID_ATTR
96 typedef struct privilege_set
105 typedef struct _PRIVS
{
108 const char *description
;
111 #endif /* PRIVILEGES_H */