Skip to contentSkip to conversation

Sucess or failure?

DISCUSSION Michael Mather 4 participants 6 messages Jul 22, 2012 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi,

I enter the command "sudo cp qwerty /etc/xxx"
and get the reply: "cp: cannot stat `qwerty': No such file or directory."

A number of log entries are written. The last two are, in part:

type=SYSCALL success=yes
type=EXECVE argc=3 a0="cp" a1="qwerty" a2="/etc/xxx"

My problem is with "success=yes".

What is happening?

Thanks - Michael Mather
-----------------------

#1 lore raw
Quoted 11 lines · Michael Mather

Hi,

I enter the command "sudo cp qwerty /etc/xxx"
and get the reply: "cp: cannot stat `qwerty': No such file or directory."

A number of log entries are written. The last two are, in part:

type=SYSCALL success=yes
type=EXECVE argc=3 a0="cp" a1="qwerty" a2="/etc/xxx"

My problem is with "success=yes".

What's the actual syscall and what's the actual rule that triggering the entry?

Quoted 12 lines

What is happening?

Thanks - Michael Mather
-----------------------

--
Linux-audit mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-audit

Signature · 2 lines
Peter Moody      Google    1.650.253.7306
Security Engineer  pgp:0xC3410038
#2 lore raw
In reply to Michael Mather
Quoted 5 lines · Michael Mather

Hi,

I enter the command "sudo cp qwerty /etc/xxx"
and get the reply: "cp: cannot stat `qwerty': No such file or directory."

Quoted 8 lines

A number of log entries are written. The last two are, in part:

type=SYSCALL success=yes
type=EXECVE argc=3 a0="cp" a1="qwerty" a2="/etc/xxx"

My problem is with "success=yes".

What is happening?

Assuming the syscall is execve, then it succeeds because your shell successfully execve() to run cp.
Then cp the program fails.

#3 lore raw
In reply to Michael Mather
Quoted 1 line

From the point of view of the linux kernel, and of the audit, you have

the right to execute the cp, you don't have permission denied. So the result is success.

Best regards

2012/7/22, Michael Mather <[email protected]>:

Quoted 24 lines

Hi,

I enter the command "sudo cp qwerty /etc/xxx"
and get the reply: "cp: cannot stat `qwerty': No such file or directory."

A number of log entries are written. The last two are, in part:

type=SYSCALL success=yes
type=EXECVE argc=3 a0="cp" a1="qwerty" a2="/etc/xxx"

My problem is with "success=yes".

What is happening?

Thanks - Michael Mather
-----------------------

--
Linux-audit mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-audit

Signature · 1 line
Inviato dal mio dispositivo mobile
#4 lore raw

Thanks for the replies.

The problem is that the PCI requirements say:

10.3 Record at least the following audit trail entries for all system components for each event:
...
10.3.4 Success or failure indication.

I don't know if PCI would accept the notion that this was success.

Michael
-------

Quoted 32 lines · yersinia
Quoted 1 line

From the point of view of the linux kernel, and of the audit, you have

the right to execute the cp, you don't have permission denied. So the result is success.

Best regards

2012/7/22, Michael Mather <[email protected]>:

Quoted 24 lines

Hi,

I enter the command "sudo cp qwerty /etc/xxx"
and get the reply: "cp: cannot stat `qwerty': No such file or directory."

A number of log entries are written. The last two are, in part:

type=SYSCALL success=yes
type=EXECVE argc=3 a0="cp" a1="qwerty" a2="/etc/xxx"

My problem is with "success=yes".

What is happening?

Thanks - Michael Mather
-----------------------

--
Linux-audit mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-audit

#6 lore raw
In reply to a message not in the archive

Well, i am pretty sure that pci dss could consider this a success. This is because the standard speak of "security" relevant event , in the same vain of the common criteria standards does. And some distro that include the linux audit subsystem are common criteria certified ( check in the doc of the audit, package some example configuration for these standards, Well documented).

Hope this help

best regards

2012/7/22, Michael Mather <[email protected]>:

Quoted 51 lines

Thanks for the replies.

The problem is that the PCI requirements say:

10.3 Record at least the following audit trail entries for all system components for each event:
...
10.3.4 Success or failure indication.

I don't know if PCI would accept the notion that this was success.

Michael
-------

Quoted 33 lines · yersinia
Quoted 1 line

From the point of view of the linux kernel, and of the audit, you have

the right to execute the cp, you don't have permission denied. So the result is success.

Best regards

2012/7/22, Michael Mather <[email protected]>:

Quoted 25 lines

Hi,

I enter the command "sudo cp qwerty /etc/xxx"
and get the reply: "cp: cannot stat `qwerty': No such file or directory."

A number of log entries are written. The last two are, in part:

type=SYSCALL success=yes
type=EXECVE argc=3 a0="cp" a1="qwerty" a2="/etc/xxx"

My problem is with "success=yes".

What is happening?

Thanks - Michael Mather
-----------------------

--
Linux-audit mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-audit

Signature · 1 line
Inviato dal mio dispositivo mobile