Skip to contentSkip to conversation

watching files/directories with audit the contains turkish characters in file/directory name

DISCUSSION Evren Kalayciklioglu 2 participants 2 messages Jun 6, 2006 – Jun 8, 2006

lore
Share & tools
lore
#0 lore raw

I want to monitor some specific file with audit. These files' names mostly includes Turkish characters. When i tried the program, for including Turkish characters, log for these files is unreadable. I can change all these files' names but my boss does not accept this. He wants to watch with Turkish characters and the output file is correct and readable for Turkish according to him.

So, i am thinking to change the source if there is definite character codes. what i want to do that change the valid character code to unicode UTF-8 or add unicode UTF-8.

Is it possible? or not? If it is possible, which file is interested what i want to do in source code?

Thanks a lot.

Evren Kalayciklioglu

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#1 lore raw
Quoted 4 lines · Evren Kalayciklioglu

So, i am thinking to change the source if there is definite character codes. what i want to do that change the valid character code to unicode UTF-8 or add unicode UTF-8.

I'd be curious to see the patch when you have one.

Quoted 1 line

Is it possible?

I think its possible to update the code to do this. My personal setup is simply ASCII. That's all it has been tested for.

Quoted 2 lines

If it is possible, which file is interested what i want to do in source code?

First I'd see if you can insert a watch and list a watch so that it looks right.

When that is working, then check the audit logs with vi/emacs/less to see what kind of records you get. You may find the filenames are encoded. If so don't worry about it.

Next check the output of ausearch. Something like 'ausearch -m PATH' should be good enough. Correct that code to display the characters. Next try to find a file, 'ausearch -f some-name'. After that is working, try executable, 'ausearch -x some-name'. Next get command names working, 'ausearch -c some-name'. If you allow host names in turkish try 'ausearch -h some-name'. You may also archive audit logs with turkish characters so you will want to try copying the audit logs to a file with turkish name and run 'ausearch -if some-name'.

Any changes from the above should be checked to see if they apply to aureport. Then I'd start working on that program.

As I said, I'd be interested in seeing the patches.

-Steve