~ubuntu-branches/ubuntu/maverick/samba/maverick-security

« back to all changes in this revision

Viewing changes to librpc/gen_ndr/winreg.h

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-01-29 06:16:15 UTC
  • mfrom: (0.27.9 upstream) (0.34.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100129061615-37hs6xqpsdhjq3ld
Tags: 2:3.4.5~dfsg-1ubuntu1
* Merge from debian testing.  Remaining changes:
  + debian/patches/VERSION.patch:
    - set SAMBA_VERSION_SUFFIX to Ubuntu.
  + debian/smb.conf:
    - Add "(Samba, Ubuntu)" to server string.
    - Comment out the default [homes] share, and add a comment about "valid users = %s"
      to show users how to restrict access to \\server\username to only username.
    - Set 'usershare allow guests', so that usershare admins are allowed to create
      public shares in additon to authenticated ones.
    - add map to guest = Bad user, maps bad username to gues access.
  + debian/samba-common.conf:
    - Do not change priority to high if dhclient3 is installed.
    - Use priority medium instead of high for the workgroup question.
  + debian/mksambapasswd.awk:
    - Do not add user with UID less than 1000 to smbpasswd.
  + debian/control: 
    - Make libswbclient0 replace/conflict with hardy's likewise-open.
    - Don't build against ctdb, since its not in main yet.
  + debian/rules:
    - Enable "native" PIE hardening.
    - Add BIND_NOW to maximize benefit of RELRO hardening.
  + Add ufw integration:
    - Created debian/samba.ufw.profile.
    - debian/rules, debian/samba.dirs, debian/samba.files: install
  + Add apoort hook:
    - Created debian/source_samba.py.
    - debian/rules, debian/samba.dirs, debian/samba-common-bin.files: install
  + debian/rules, debian/samba.if-up: allow "NetworkManager" as a recognized address
    family... it's obviously /not/ an address family, but it's what gets
    sent when using NM, so we'll cope for now.  (LP: #462169). Taken from karmic-proposed.
  + debian/control: Recommend keyutils for smbfs (LP: #493565)
  + Dropped patches:
    - debian/patches/security-CVE-2009-3297.patch: No longer needed
    - debian/patches/fix-too-many-open-files.patch: No longer needed

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
#include "librpc/gen_ndr/lsa.h"
8
8
#include "librpc/gen_ndr/security.h"
 
9
#include "librpc/gen_ndr/misc.h"
9
10
#ifndef _HEADER_winreg
10
11
#define _HEADER_winreg
11
12
 
23
24
#define KEY_WOW64_64KEY ( 0x00100 )
24
25
#define KEY_WOW64_32KEY ( 0x00200 )
25
26
 
26
 
enum winreg_Type
27
 
#ifndef USE_UINT_ENUMS
28
 
 {
29
 
        REG_NONE=0,
30
 
        REG_SZ=1,
31
 
        REG_EXPAND_SZ=2,
32
 
        REG_BINARY=3,
33
 
        REG_DWORD=4,
34
 
        REG_DWORD_BIG_ENDIAN=5,
35
 
        REG_LINK=6,
36
 
        REG_MULTI_SZ=7,
37
 
        REG_RESOURCE_LIST=8,
38
 
        REG_FULL_RESOURCE_DESCRIPTOR=9,
39
 
        REG_RESOURCE_REQUIREMENTS_LIST=10,
40
 
        REG_QWORD=11
41
 
}
42
 
#else
43
 
 { __donnot_use_enum_winreg_Type=0x7FFFFFFF}
44
 
#define REG_NONE ( 0 )
45
 
#define REG_SZ ( 1 )
46
 
#define REG_EXPAND_SZ ( 2 )
47
 
#define REG_BINARY ( 3 )
48
 
#define REG_DWORD ( 4 )
49
 
#define REG_DWORD_BIG_ENDIAN ( 5 )
50
 
#define REG_LINK ( 6 )
51
 
#define REG_MULTI_SZ ( 7 )
52
 
#define REG_RESOURCE_LIST ( 8 )
53
 
#define REG_FULL_RESOURCE_DESCRIPTOR ( 9 )
54
 
#define REG_RESOURCE_REQUIREMENTS_LIST ( 10 )
55
 
#define REG_QWORD ( 11 )
56
 
#endif
57
 
;
58
 
 
59
27
struct winreg_String {
60
28
        uint16_t name_len;/* [value(strlen_m_term(name)*2)] */
61
29
        uint16_t name_size;/* [value(strlen_m_term(name)*2)] */