[BUG 3.6-rc] samba works rather randomly with w2k+debian server

2012-09-14 Thread auto75914331
3.5.3 and older works, 3.6-rc not -> shared directories sometimes work, 
sometimes not,
/etc/init.d/samba restart did help atleast once with 3.6-rc5,
hope this helps


thanks

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH V2] netfilter/iptables: Fix log-level processing

2012-09-14 Thread auto75914331
thanks, propably works, will not test



On 12.09.2012 at 3:05 PM, Joe Perches  wrote:
>
>auto75914...@hushmail.com reports that iptables does not correctly
>output the KERN_.
>
>$IPTABLES -A RULE_0_in  -j LOG  --log-level notice --log-prefix 
>"DENY  in: "
>
>result with linux 3.6-rc5
>Sep 12 06:37:29 x kernel: <5>DENY  in: IN=eth0 OUT= MAC=...
>
>result with linux 3.5.3 and older:
>Sep  9 10:43:01 x kernel: DENY  in: IN=eth0 OUT= MAC..
>
>commit 04d2c8c83d0
>("printk: convert the format for KERN_ to a 2 byte pattern")
>updated the syslog header style but did not update netfilter uses.
>
>Do so.
>
>Signed-off-by: Joe Perches 
>cc: auto75914...@hushmail.com
>---
>v2: Use KERN_SOH and string concatenation instead of "%c" 
>KERN_SOH_ASCII
>as suggested by Eric Dumazet.
>
> net/bridge/netfilter/ebt_log.c |2 +-
> net/netfilter/xt_LOG.c |4 ++--
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
>diff --git a/net/bridge/netfilter/ebt_log.c 
>b/net/bridge/netfilter/ebt_log.c
>index f88ee53..92de5e5 100644
>--- a/net/bridge/netfilter/ebt_log.c
>+++ b/net/bridge/netfilter/ebt_log.c
>@@ -80,7 +80,7 @@ ebt_log_packet(u_int8_t pf, unsigned int hooknum,
>   unsigned int bitmask;
> 
>   spin_lock_bh(_log_lock);
>-  printk("<%c>%s IN=%s OUT=%s MAC source = %pM MAC dest = %pM 
>proto = 0x%04x",
>+  printk(KERN_SOH "%c%s IN=%s OUT=%s MAC source = %pM MAC dest = 
>%pM proto = 0x%04x",
>  '0' + loginfo->u.log.level, prefix,
>  in ? in->name : "", out ? out->name : "",
>  eth_hdr(skb)->h_source, eth_hdr(skb)->h_dest,
>diff --git a/net/netfilter/xt_LOG.c b/net/netfilter/xt_LOG.c
>index ff5f75f..d1609dd 100644
>--- a/net/netfilter/xt_LOG.c
>+++ b/net/netfilter/xt_LOG.c
>@@ -436,8 +436,8 @@ log_packet_common(struct sbuff *m,
> const struct nf_loginfo *loginfo,
> const char *prefix)
> {
>-  sb_add(m, "<%d>%sIN=%s OUT=%s ", loginfo->u.log.level,
>- prefix,
>+  sb_add(m, KERN_SOH "%c%sIN=%s OUT=%s ",
>+ '0' + loginfo->u.log.level, prefix,
>  in ? in->name : "",
>  out ? out->name : "");
> #ifdef CONFIG_BRIDGE_NETFILTER

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH V2] netfilter/iptables: Fix log-level processing

2012-09-14 Thread auto75914331
thanks, propably works, will not test



On 12.09.2012 at 3:05 PM, Joe Perches j...@perches.com wrote:

auto75914...@hushmail.com reports that iptables does not correctly
output the KERN_level.

$IPTABLES -A RULE_0_in  -j LOG  --log-level notice --log-prefix 
DENY  in: 

result with linux 3.6-rc5
Sep 12 06:37:29 x kernel: 5DENY  in: IN=eth0 OUT= MAC=...

result with linux 3.5.3 and older:
Sep  9 10:43:01 x kernel: DENY  in: IN=eth0 OUT= MAC..

commit 04d2c8c83d0
(printk: convert the format for KERN_LEVEL to a 2 byte pattern)
updated the syslog header style but did not update netfilter uses.

Do so.

Signed-off-by: Joe Perches j...@perches.com
cc: auto75914...@hushmail.com
---
v2: Use KERN_SOH and string concatenation instead of %c 
KERN_SOH_ASCII
as suggested by Eric Dumazet.

 net/bridge/netfilter/ebt_log.c |2 +-
 net/netfilter/xt_LOG.c |4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/net/bridge/netfilter/ebt_log.c 
b/net/bridge/netfilter/ebt_log.c
index f88ee53..92de5e5 100644
--- a/net/bridge/netfilter/ebt_log.c
+++ b/net/bridge/netfilter/ebt_log.c
@@ -80,7 +80,7 @@ ebt_log_packet(u_int8_t pf, unsigned int hooknum,
   unsigned int bitmask;
 
   spin_lock_bh(ebt_log_lock);
-  printk(%c%s IN=%s OUT=%s MAC source = %pM MAC dest = %pM 
proto = 0x%04x,
+  printk(KERN_SOH %c%s IN=%s OUT=%s MAC source = %pM MAC dest = 
%pM proto = 0x%04x,
  '0' + loginfo-u.log.level, prefix,
  in ? in-name : , out ? out-name : ,
  eth_hdr(skb)-h_source, eth_hdr(skb)-h_dest,
diff --git a/net/netfilter/xt_LOG.c b/net/netfilter/xt_LOG.c
index ff5f75f..d1609dd 100644
--- a/net/netfilter/xt_LOG.c
+++ b/net/netfilter/xt_LOG.c
@@ -436,8 +436,8 @@ log_packet_common(struct sbuff *m,
 const struct nf_loginfo *loginfo,
 const char *prefix)
 {
-  sb_add(m, %d%sIN=%s OUT=%s , loginfo-u.log.level,
- prefix,
+  sb_add(m, KERN_SOH %c%sIN=%s OUT=%s ,
+ '0' + loginfo-u.log.level, prefix,
  in ? in-name : ,
  out ? out-name : );
 #ifdef CONFIG_BRIDGE_NETFILTER

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[BUG 3.6-rc] samba works rather randomly with w2k+debian server

2012-09-14 Thread auto75914331
3.5.3 and older works, 3.6-rc not - shared directories sometimes work, 
sometimes not,
/etc/init.d/samba restart did help atleast once with 3.6-rc5,
hope this helps


thanks

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Iptables log-level does not work with kernel 3.6-rc

2012-09-11 Thread auto75914331
This rule

$IPTABLES -A RULE_0_in  -j LOG  --log-level notice --log-prefix "DENY  in: "


result with linux 3.6-rc5

Sep 12 06:37:29 x kernel: <5>DENY  in: IN=eth0 OUT= MAC=...


result with linux 3.5.3 and older:

Sep  9 10:43:01 x kernel: DENY  in: IN=eth0 OUT= MAC..


Thanks

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Iptables log-level does not work with kernel 3.6-rc

2012-09-11 Thread auto75914331
This rule

$IPTABLES -A RULE_0_in  -j LOG  --log-level notice --log-prefix DENY  in: 


result with linux 3.6-rc5

Sep 12 06:37:29 x kernel: 5DENY  in: IN=eth0 OUT= MAC=...


result with linux 3.5.3 and older:

Sep  9 10:43:01 x kernel: DENY  in: IN=eth0 OUT= MAC..


Thanks

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/