DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 28th February 2021
ohmpr ohmpr is offline
Port Guard
 
Join Date: Feb 2021
Posts: 20
Default List of packages that use pledge and/or unveil?

Is their a list online, or can a cli application be convinced to tell me which applications have had pledge and/or unveil applied to them? Theo de Raadt gave a talk where he mentioned 500/600 applications at that time. So someone may have a list.

Thanks
Reply With Quote
  #2   (View Single Post)  
Old 28th February 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

At one time I recall that each port's Makefile would note this in comments. As an example, something like $ find /usr/ports -name Makefile -exec grep -l pledge {} + might be one way to list pledged ports.
Reply With Quote
  #3   (View Single Post)  
Old 28th February 2021
ohmpr ohmpr is offline
Port Guard
 
Join Date: Feb 2021
Posts: 20
Default

so far i'm using a release with binary packages, but that's still good to know. thanks.
Reply With Quote
  #4   (View Single Post)  
Old 28th February 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

You can still use the -release or -stable ports tree for this type of research.
Reply With Quote
  #5   (View Single Post)  
Old 1st March 2021
albator albator is offline
Shell Scout
 
Join Date: Jul 2011
Posts: 98
Default

Assuming that pkg_info -f or pkg_info -L is a way to get this information (which might not be true) something like this could work (on installed packages):
for i in $(pkg_info -m|awk '{print $1'})
do
pkg_info -fL $i|egrep "pledge|unveil"
done|sort -u
Reply With Quote
  #6   (View Single Post)  
Old 1st March 2021
ohmpr ohmpr is offline
Port Guard
 
Join Date: Feb 2021
Posts: 20
Default

Quote:
Originally Posted by jggimi View Post
You can still use the -release or -stable ports tree for this type of research.
ok, thanks to both of y'all. i'll check that out.
Reply With Quote
  #7   (View Single Post)  
Old 4th March 2021
bradley bradley is offline
Fdisk Soldier
 
Join Date: Jul 2020
Posts: 53
Default

Nice commands. Good to see so many ports can be pledged. In order to count those mentioned in the ports just:
Code:
find /usr/ports -name Makefile -exec grep -l pledge {} + | wc -l
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pledge news? frcc News 1 18th October 2016 05:18 PM
pledge(2) & snapshots of -current ocicat OpenBSD Packages and Ports 1 12th July 2016 06:37 AM
Learning to pledge() an application - a story jggimi OpenBSD Security 8 25th January 2016 03:42 AM
how-to list all packages that need upgrading ? da1 OpenBSD Packages and Ports 7 26th October 2010 03:39 AM
List of 4.7 packages? guitarscn OpenBSD Packages and Ports 5 23rd August 2010 05:37 PM


All times are GMT. The time now is 12:54 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick