New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

soup: check for lock #1428

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

Comments

Projects
1 participant
@dougburks
Copy link
Contributor

dougburks commented Jan 26, 2019

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.5.7 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.5.7 Jan 26, 2019

@dougburks

This comment has been minimized.

Copy link
Contributor Author

dougburks commented Jan 26, 2019

@dougburks dougburks moved this from In progress to In Testing in 16.04.5.7 Jan 26, 2019

@dougburks

This comment has been minimized.

Copy link
Contributor Author

dougburks commented Feb 4, 2019

@dougburks dougburks closed this Feb 4, 2019

16.04.5.7 automation moved this from In Testing to Done Feb 4, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment