Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

soup: check for lock #1428

Closed
dougburks opened this issue Jan 26, 2019 · 2 comments
Closed

soup: check for lock #1428

dougburks opened this issue Jan 26, 2019 · 2 comments
Projects

Comments

@dougburks
Copy link
Contributor

Background
https://groups.google.com/d/topic/security-onion/h1O2U_szyCc/discussion

Problem
Currently, soup doesn't check to see if the lock files in /var/lib/dpkg/ are locked by other processes.

Solution
Add a check like the following to the beginning of soup:

if lsof /var/lib/dpkg/lock* >/dev/null; then
	echo "/var/lib/dpkg/ is locked by another process!"
	lsof /var/lib/dpkg/lock*
	exit
fi
@dougburks dougburks added this to To do in 16.04.6.1 via automation Jan 26, 2019
dougburks added a commit to Security-Onion-Solutions/securityonion-sostat that referenced this issue Jan 26, 2019
@dougburks dougburks moved this from To do to In progress in 16.04.6.1 Jan 26, 2019
@dougburks
Copy link
Contributor Author

@dougburks dougburks moved this from In progress to In Testing in 16.04.6.1 Jan 26, 2019
@dougburks
Copy link
Contributor Author

16.04.6.1 automation moved this from In Testing to Done Feb 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
No open projects
16.04.6.1
  
Done
Development

No branches or pull requests

1 participant