All of lore.kernel.org
 help / color / mirror / Atom feed
* Regular Expression Problem
@ 2004-06-12  6:34 Park Lee
  2004-06-12  8:09 ` Luke Kenneth Casson Leighton
  2004-06-12  8:38 ` Russell Coker
  0 siblings, 2 replies; 3+ messages in thread
From: Park Lee @ 2004-06-12  6:34 UTC (permalink / raw)
  To: selinux

[-- Attachment #1: Type: text/plain, Size: 591 bytes --]

Hi,
 
In the file_contexts file, I found some regular expressions. I studied them for a while, but still can't understand them well.
 
For example:  /var(/.*)
 
As I know: '.' stands for any character;
Let's suppose '.' now stands for character 'a'. 
then '/var(/.*)' can mean:
'/var/a','/var/aa','/var/aaa','/var/aaaa','/var/aaaaa', ... ...
 
But now, If I have a file or directory named 'abc' in directory '/var' (i.e., 
/var/abc). How can it match '/var(/.*)' ?
 
 
Thank you.

Park Lee


		
---------------------------------
Do you Yahoo!?
Friends.  Fun. Try the all-new Yahoo! Messenger

[-- Attachment #2: Type: text/html, Size: 826 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-06-12  8:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-12  6:34 Regular Expression Problem Park Lee
2004-06-12  8:09 ` Luke Kenneth Casson Leighton
2004-06-12  8:38 ` Russell Coker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.