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

« back to all changes in this revision

Viewing changes to source/registry/reg_backend_printing.c

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Mitchell
  • Date: 2009-05-18 13:26:04 UTC
  • mfrom: (0.28.5 sid)
  • Revision ID: james.westby@ubuntu.com-20090518132604-ebyuqimgymtr3h0k
Tags: 2:3.3.4-2ubuntu1
* Merge from debian unstable, remaining changes:
  + debian/patches/VERSION.patch:
    - setup 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 addition to authenticated
      ones.
    - add map to guest = Bad user, maps bad username to guest access.
  + debian/samba-common.config:
    - Do not change priority to high if dhclient3 is installed.
    - Use priority medium instead of high for the workgroup question.
  + debian/samba-common.postinst: Add more informative error message for
    the case where smb.conf was manually deleted (LP: #312449)
  + debian/mksambapasswd.awk:
    - Do not add user with UID less than 1000 to smbpasswd.
  + debian/control:
    - Make libwbclient0 replace/conflict with hardy's likewise-open.
    - Don't build against ctdb.
    - Add suggests keyutils for smbfs. (LP: #300221)
  + debian/rules:
    - enable "native" PIE hardening.
    - remove --with-ctdb and --with-cluster-support=yes
  + Add ufw integration:
    - Created debian/samba.ufw profile.
    - debian/rules, debian/samba.dirs, debian/samba.files: install 
      profile
    - debian/control: have samba sugguest ufw.
* Dropped patches:
  + debian/patches/fix-upstream-bug-6186.patch: Merged upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        const char *path;
43
43
 
44
44
        /* callbscks for fetch/store operations */
45
 
        int ( *fetch_subkeys) ( const char *path, REGSUBKEY_CTR *subkeys );
46
 
        bool (*store_subkeys) ( const char *path, REGSUBKEY_CTR *subkeys );
 
45
        int ( *fetch_subkeys) ( const char *path, struct regsubkey_ctr *subkeys );
 
46
        bool (*store_subkeys) ( const char *path, struct regsubkey_ctr *subkeys );
47
47
        int  (*fetch_values)  ( const char *path, REGVAL_CTR *values );
48
48
        bool (*store_values)  ( const char *path, REGVAL_CTR *values );
49
49
};
77
77
 *********************************************************************
78
78
 *********************************************************************/
79
79
 
80
 
static int key_forms_fetch_keys(const char *key, REGSUBKEY_CTR *subkeys)
 
80
static int key_forms_fetch_keys(const char *key, struct regsubkey_ctr *subkeys)
81
81
{
82
82
        char *p = reg_remaining_path(talloc_tos(), key + strlen(KEY_FORMS));
83
83
 
196
196
/*********************************************************************
197
197
 *********************************************************************/
198
198
 
199
 
static int key_printers_fetch_keys( const char *key, REGSUBKEY_CTR *subkeys )
 
199
static int key_printers_fetch_keys( const char *key, struct regsubkey_ctr *subkeys )
200
200
{
201
201
        int n_services = lp_numservices();
202
202
        int snum;
275
275
 keyname is the sharename and not the printer name.
276
276
 *********************************************************************/
277
277
 
278
 
static bool add_printers_by_registry( REGSUBKEY_CTR *subkeys )
 
278
static bool add_printers_by_registry( struct regsubkey_ctr *subkeys )
279
279
{
280
280
        int i, num_keys, snum;
281
281
        char *printername;
310
310
/**********************************************************************
311
311
 *********************************************************************/
312
312
 
313
 
static bool key_printers_store_keys( const char *key, REGSUBKEY_CTR *subkeys )
 
313
static bool key_printers_store_keys( const char *key, struct regsubkey_ctr *subkeys )
314
314
{
315
315
        char *printers_key;
316
316
        char *printername, *printerdatakey;
738
738
 *********************************************************************
739
739
 *********************************************************************/
740
740
 
741
 
static int key_driver_fetch_keys( const char *key, REGSUBKEY_CTR *subkeys )
 
741
static int key_driver_fetch_keys( const char *key, struct regsubkey_ctr *subkeys )
742
742
{
743
743
        const char *environments[] = {
744
744
                "Windows 4.0",
1085
1085
 *********************************************************************
1086
1086
 *********************************************************************/
1087
1087
 
1088
 
static int key_print_fetch_keys( const char *key, REGSUBKEY_CTR *subkeys )
 
1088
static int key_print_fetch_keys( const char *key, struct regsubkey_ctr *subkeys )
1089
1089
{
1090
1090
        int key_len = strlen(key);
1091
1091
 
1192
1192
/***********************************************************************
1193
1193
 **********************************************************************/
1194
1194
 
1195
 
static int regprint_fetch_reg_keys( const char *key, REGSUBKEY_CTR *subkeys )
 
1195
static int regprint_fetch_reg_keys( const char *key, struct regsubkey_ctr *subkeys )
1196
1196
{
1197
1197
        int i = match_registry_path( key );
1198
1198
 
1208
1208
/**********************************************************************
1209
1209
 *********************************************************************/
1210
1210
 
1211
 
static bool regprint_store_reg_keys( const char *key, REGSUBKEY_CTR *subkeys )
 
1211
static bool regprint_store_reg_keys( const char *key, struct regsubkey_ctr *subkeys )
1212
1212
{
1213
1213
        int i = match_registry_path( key );
1214
1214