~ubuntu-branches/debian/sid/lvm2/sid

« back to all changes in this revision

Viewing changes to lib/mm/memlock.c

  • Committer: Package Import Robot
  • Author(s): Bastian Blank
  • Date: 2014-08-19 15:37:06 UTC
  • mfrom: (1.1.18)
  • Revision ID: package-import@ubuntu.com-20140819153706-i1gaio8lg534dara
Tags: 2.02.109-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
 
83
83
/* list of maps, that are unconditionaly ignored */
84
84
static const char * const _ignore_maps[] = {
85
 
    "[vdso]",
86
 
    "[vsyscall]",
87
 
    "[vectors]",
 
85
        "[vdso]",
 
86
        "[vsyscall]",
 
87
        "[vectors]",
88
88
};
89
89
 
90
90
/* default blacklist for maps */
91
91
static const char * const _blacklist_maps[] = {
92
 
    "locale/locale-archive",
93
 
    "/LC_MESSAGES/",
94
 
    "gconv/gconv-modules.cache",
95
 
    "/libreadline.so.", /* not using readline during mlock */
96
 
    "/libncurses.so.",  /* not using ncurses during mlock */
97
 
    "/libtinfo.so.",    /* not using tinfo during mlock */
98
 
    "/libdl-",          /* not using dlopen,dlsym during mlock */
99
 
    /* "/libdevmapper-event.so" */
 
92
        "locale/locale-archive",
 
93
        "/LC_MESSAGES/",
 
94
        "gconv/gconv-modules.cache",
 
95
        "/libblkid.so.",        /* not using lzma during mlock (selinux) */
 
96
        "/liblzma.so.", /* not using lzma during mlock (selinux) */
 
97
        "/libncurses.so.",      /* not using ncurses during mlock */
 
98
        "/libpcre.so.", /* not using pcre during mlock (selinux) */
 
99
        "/libreadline.so.",     /* not using readline during mlock */
 
100
        "/libselinux.so.",      /* not using selinux during mlock */
 
101
        "/libsepol.so.",        /* not using sepol during mlock */
 
102
        "/libtinfo.so.",        /* not using tinfo during mlock */
 
103
        "/libudev.so.",         /* not using udev during mlock */
 
104
        "/libuuid.so.",         /* not using uuid during mlock (blkid) */
 
105
        "/libdl-",              /* not using dlopen,dlsym during mlock */
 
106
        "/etc/selinux",         /* not using selinux during mlock */
 
107
        /* "/libdevmapper-event.so" */
100
108
};
101
109
 
102
110
typedef enum { LVM_MLOCK, LVM_MUNLOCK } lvmlock_t;
411
419
         * entering the critical section all needed profiles are
412
420
         * loaded to avoid the disk access later.
413
421
         */
414
 
        load_pending_profiles(cmd);
 
422
        (void) load_pending_profiles(cmd);
415
423
 
416
424
        if (!_critical_section) {
417
425
                _critical_section = 1;