diff options
| author | Qi.Chen@windriver.com <Qi.Chen@windriver.com> | 2019-08-28 09:48:44 +0800 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2019-08-28 08:05:55 -0700 |
| commit | 10ac9f8bff0cad508404ac22d66132115db02d8b (patch) | |
| tree | 573e0c78b3c3b842485bf824797d02e15327a470 /recipes-security/ecryptfs-utils/ecryptfs-utils_111.bb | |
| parent | bcbd10be8775785c2d03fc768a1f76a6c13ea8b8 (diff) | |
| download | meta-security-10ac9f8bff0cad508404ac22d66132115db02d8b.tar.gz | |
ecryptfs-utils: fix race condition in do_install
The rootsbindir is a self-defined directory. The install-rootsbinPROGRAMS
is actually treated as part of install-data instead of install-exec.
Do making install-exec-am depend on it actually results in the following
Makefile contents.
install-data-am: install-rootsbinPROGRAMS
install-exec-am: install-binPROGRAMS install-binSCRIPTS
@$(NORMAL_INSTALL)
$(MAKE) $(AM_MAKEFLAGS) install-exec-hook
install-exec-hook: install-rootsbinPROGRAMS
And this results in race condition as two install commands of the same
file running at the same time. Error message is like below.
TOPDIR/tmp-glibc/hosttools/install: cannot create regular file 'TOPDIR/tmp-glibc/work/aarch64-wrs-linux/ecryptfs-utils/111-r0/image/sbin/mount.ecryptfs': File exists
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'recipes-security/ecryptfs-utils/ecryptfs-utils_111.bb')
| -rw-r--r-- | recipes-security/ecryptfs-utils/ecryptfs-utils_111.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes-security/ecryptfs-utils/ecryptfs-utils_111.bb b/recipes-security/ecryptfs-utils/ecryptfs-utils_111.bb index 8e498c9..e45ee0b 100644 --- a/recipes-security/ecryptfs-utils/ecryptfs-utils_111.bb +++ b/recipes-security/ecryptfs-utils/ecryptfs-utils_111.bb | |||
| @@ -14,6 +14,7 @@ DEPENDS = "keyutils libgcrypt intltool-native glib-2.0-native" | |||
| 14 | SRC_URI = "\ | 14 | SRC_URI = "\ |
| 15 | https://launchpad.net/ecryptfs/trunk/${PV}/+download/${BPN}_${PV}.orig.tar.gz \ | 15 | https://launchpad.net/ecryptfs/trunk/${PV}/+download/${BPN}_${PV}.orig.tar.gz \ |
| 16 | file://ecryptfs-utils-CVE-2016-6224.patch \ | 16 | file://ecryptfs-utils-CVE-2016-6224.patch \ |
| 17 | file://0001-avoid-race-condition.patch \ | ||
| 17 | file://ecryptfs.service \ | 18 | file://ecryptfs.service \ |
| 18 | " | 19 | " |
| 19 | 20 | ||
