[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: standard for executable files under /usr/share



On Wed, Mar 19, 2003 at 01:07:01AM +0100, Russell Coker wrote:
> On Tue, 18 Mar 2003 22:07, sean finney wrote:
> > am i missing something here?
> >
> > find /usr/share -exec file {} \; | grep executable
> 
> The problem with that is that some packages have documentation, example files, 
> and template files under /usr/share which are recognised as executables.

it was a crude example to get a point across.  i think you could sufficiently
modify a similar script to suit your needs:

find /usr/share -path /usr/share/doc -prune -o -type f -exec file {} \; | grep executable | grep -E 'script|whatever'

> Also this problem will be more difficult to solve for LIDS and other security 
> modules that perform access control based on file names as all those names 
> will have to be known by the kernel.

can they be given a list of filenames, or do you want regular expressions?


	sean

Attachment: pgpGlcv5EwPgr.pgp
Description: PGP signature


Reply to: