All of lore.kernel.org
 help / color / mirror / Atom feed
* log_domain macro
@ 2003-12-15 10:02 Yuichi Nakamura
  2003-12-15 15:45 ` Stephen Smalley
  2003-12-15 15:54 ` log_domain macro Stephen Smalley
  0 siblings, 2 replies; 12+ messages in thread
From: Yuichi Nakamura @ 2003-12-15 10:02 UTC (permalink / raw)
  To: selinux; +Cc: ynakam


In log_domain macro,
file_type_auto_trans($1_t, var_log_t, $1_log_t, file)
is described.

By file_type_auto_trans, $1_t can write(unlink) $1_log_t.

If attackers obtains the domain where log_domain macro is used, 
attackers can erase log file.

Many daemons only need append permission to log files.
I think macro such as following is necessary.

define(`append_log_domain', `
type $1_log_t, file_type, sysadmfile, logfile;
allow $1_t var_log_t:dir rw_dir_perms;
allow $1_t $1_log_t:file  { create ra_file_perms };
type_transition $1_t var_log_t:file $1_log_t;
')

--
Yuichi Nakamura
Hitachi Software Engineering Co.,Ltd.

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

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

end of thread, other threads:[~2003-12-23  9:46 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-15 10:02 log_domain macro Yuichi Nakamura
2003-12-15 15:45 ` Stephen Smalley
2003-12-16  4:39   ` Yuichi Nakamura
     [not found]     ` <1071688353.1403.137.camel@moss-spartans.epoch.ncsc.mil>
2003-12-19 10:50       ` Apache on FedoraCore1(Was Re: log_domain macro) Yuichi Nakamura
2003-12-21 21:54         ` Kerry Thompson
2003-12-21 22:49           ` Joerg Hoh
2003-12-22 12:57             ` Daniel J Walsh
2003-12-23  0:01               ` Yuichi Nakamura
2003-12-23  3:38                 ` Russell Coker
2003-12-23  9:45                   ` Yuichi Nakamura
2003-12-23  9:45                     ` Russell Coker
2003-12-15 15:54 ` log_domain macro Stephen Smalley

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.