All of lore.kernel.org
 help / color / mirror / Atom feed
* Q: encryted log
@ 2018-11-24 15:37 Ranran
  2018-11-26 18:37 ` Richard Guy Briggs
  2018-11-26 20:30 ` Steve Grubb
  0 siblings, 2 replies; 5+ messages in thread
From: Ranran @ 2018-11-24 15:37 UTC (permalink / raw)
  To: linux-audit

Hello,

Is there a way to encrypt the auditd logs which are saved to disk?
The system need to save logs from local into disk (not a remote
connection), but it should be saved encryped. Is there a way to do it
?

Thank you,
ran

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

* Re: Q: encryted log
  2018-11-24 15:37 Q: encryted log Ranran
@ 2018-11-26 18:37 ` Richard Guy Briggs
  2018-11-27  6:08   ` Marko Horn
  2018-11-26 20:30 ` Steve Grubb
  1 sibling, 1 reply; 5+ messages in thread
From: Richard Guy Briggs @ 2018-11-26 18:37 UTC (permalink / raw)
  To: Ranran; +Cc: linux-audit

On 2018-11-24 17:37, Ranran wrote:
> Hello,
> 
> Is there a way to encrypt the auditd logs which are saved to disk?
> The system need to save logs from local into disk (not a remote
> connection), but it should be saved encryped. Is there a way to do it?

The easy answer is that any system that is configured to use full disk
encryption (LUKS is the default one on many distros.) will give you that
automatically.

You have not provided more detail to know if this is what you had in
mind or would be sufficient for your requirements.  If you require the
daemon to write to encrypted log files, then you may be out of luck.

> ran

- RGB

--
Richard Guy Briggs <rgb@redhat.com>
Sr. S/W Engineer, Kernel Security, Base Operating Systems
Remote, Ottawa, Red Hat Canada
IRC: rgb, SunRaycer
Voice: +1.647.777.2635, Internal: (81) 32635

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

* Re: Q: encryted log
  2018-11-24 15:37 Q: encryted log Ranran
  2018-11-26 18:37 ` Richard Guy Briggs
@ 2018-11-26 20:30 ` Steve Grubb
  1 sibling, 0 replies; 5+ messages in thread
From: Steve Grubb @ 2018-11-26 20:30 UTC (permalink / raw)
  To: linux-audit

On Saturday, November 24, 2018 10:37:41 AM EST Ranran wrote:
> Is there a way to encrypt the auditd logs which are saved to disk?
> The system need to save logs from local into disk (not a remote
> connection), but it should be saved encryped. Is there a way to do it

Typically audit logs are protected by virtue of needing root to read 
anything. An untrusted root user is something Linux isn't designed for. 

-Steve

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

* Re: Q: encryted log
  2018-11-26 18:37 ` Richard Guy Briggs
@ 2018-11-27  6:08   ` Marko Horn
  2018-11-27 23:01     ` Michael Halcrow
  0 siblings, 1 reply; 5+ messages in thread
From: Marko Horn @ 2018-11-27  6:08 UTC (permalink / raw)
  To: linux-audit


[-- Attachment #1.1: Type: text/plain, Size: 1177 bytes --]

hello,
you can easily do an encrypted
/var/log/auditlog partition
and save the logs there

Am 26. November 2018 19:37:36 MEZ schrieb Richard Guy Briggs <rgb@redhat.com>:
>On 2018-11-24 17:37, Ranran wrote:
>> Hello,
>> 
>> Is there a way to encrypt the auditd logs which are saved to disk?
>> The system need to save logs from local into disk (not a remote
>> connection), but it should be saved encryped. Is there a way to do
>it?
>
>The easy answer is that any system that is configured to use full disk
>encryption (LUKS is the default one on many distros.) will give you
>that
>automatically.
>
>You have not provided more detail to know if this is what you had in
>mind or would be sufficient for your requirements.  If you require the
>daemon to write to encrypted log files, then you may be out of luck.
>
>> ran
>
>- RGB
>
>--
>Richard Guy Briggs <rgb@redhat.com>
>Sr. S/W Engineer, Kernel Security, Base Operating Systems
>Remote, Ottawa, Red Hat Canada
>IRC: rgb, SunRaycer
>Voice: +1.647.777.2635, Internal: (81) 32635
>
>--
>Linux-audit mailing list
>Linux-audit@redhat.com
>https://www.redhat.com/mailman/listinfo/linux-audit

[-- Attachment #1.2: Type: text/html, Size: 1779 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



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

* Re: Q: encryted log
  2018-11-27  6:08   ` Marko Horn
@ 2018-11-27 23:01     ` Michael Halcrow
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Halcrow @ 2018-11-27 23:01 UTC (permalink / raw)
  To: weber; +Cc: linux-audit

On Mon, Nov 26, 2018 at 10:15 PM Marko Horn <weber@zbfmail.de> wrote:
>
> hello,
> you can easily do an encrypted
> /var/log/auditlog partition
> and save the logs there

This has the disadvantage of reserving a fixed amount of disk space
for the logs.  If you need that reserved disk space for something
else, you don't have it. If you end up needing more space for the
logs, you don't have it.

If you're using ext4 or f2fs, another option is to use their native
encryption capability.  If you're using another local file system,
well, I haven't gotten around to ripping eCryptfs out of the kernel
yet, so there's also that.

> Am 26. November 2018 19:37:36 MEZ schrieb Richard Guy Briggs <rgb@redhat.com>:
>>
>> On 2018-11-24 17:37, Ranran wrote:
>>>
>>> Hello,
>>>
>>> Is there a way to encrypt the auditd logs which are saved to disk?
>>> The system need to save logs from local into disk (not a remote
>>> connection), but it should be saved encryped. Is there a way to do it?
>>
>>
>> The easy answer is that any system that is configured to use full disk
>> encryption (LUKS is the default one on many distros.) will give you that
>> automatically.
>>
>> You have not provided more detail to know if this is what you had in
>> mind or would be sufficient for your requirements.  If you require the
>> daemon to write to encrypted log files, then you may be out of luck.
>>
>>> ran
>>
>>
>> - RGB
>>
>> --
>> Richard Guy Briggs <rgb@redhat.com>
>> Sr. S/W Engineer, Kernel Security, Base Operating Systems
>> Remote, Ottawa, Red Hat Canada
>> IRC: rgb, SunRaycer
>> Voice: +1.647.777.2635, Internal: (81) 32635
>>
>> --
>> Linux-audit mailing list
>> Linux-audit@redhat.com
>> https://www.redhat.com/mailman/listinfo/linux-audit
>
> --
> Linux-audit mailing list
> Linux-audit@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-audit

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

end of thread, other threads:[~2018-11-27 23:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-24 15:37 Q: encryted log Ranran
2018-11-26 18:37 ` Richard Guy Briggs
2018-11-27  6:08   ` Marko Horn
2018-11-27 23:01     ` Michael Halcrow
2018-11-26 20:30 ` Steve Grubb

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.