Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 02-17-2013, 12:34 PM   #16
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,818
Karma: 6314522
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by baf View Post
I once built netfilter kernel modules for KT 5.3.2 (attached). I had an idea to block outgoing connections by process id (-m owner --pid-owner), but it turned out that this option is not supported by modern kernels anymore.
Thanks.
They load into 5.3.3 (K5 Paperwhite) not just into 5.3.2 (K5 touch) and should load into any kernel with the same version string.
And perhaps earlier kernels using "force" but that is a bit risky.

Code:
core2quad netfilter $ modinfo ./ipt_LOG.ko
filename:       ./ipt_LOG.ko
description:    Xtables: IPv4 packet logging to syslog
author:         Netfilter Core Team <coreteam@netfilter.org>
license:        GPL
depends:        
vermagic:       2.6.31-rt11-lab126 mod_unload ARMv7
On Kpw-5.3.3:
Code:
[root@kindle root]# lsmod
Module                  Size  Used by
g_ether                27500  0 
arcotg_udc_yoshime     17472  1 g_ether
pkt_monitor             3532  0 
cyttsp                 25692  0 
fuse                   59316  2 
mxc_epdc_fb            42504  3 
eink_fb_waveform      557596  1 mxc_epdc_fb

[root@kindle root]# insmod ./ipt_REJECT.ko

[root@kindle root]# lsmod
Module                  Size  Used by
ipt_REJECT              2792  0 
g_ether                27500  0 
arcotg_udc_yoshime     17472  1 g_ether
pkt_monitor             3532  0 
cyttsp                 25692  0 
fuse                   59316  2 
mxc_epdc_fb            42504  3 
eink_fb_waveform      557596  1 mxc_epdc_fb

[root@kindle root]# cat /proc/version
Linux version 2.6.31-rt11-lab126 (jenkins-official@jbuild03) (collect2: ld returned 1 exit status) #1 Tue Jan 8 22:06:21 PST 2013
Thanks.
That will let me start testing BBB-1.1.0 rule-set (on the K5s) with a proper "REJECT" target and BBB-1.1.x rule-set (developer packet capture).

@baf : You didn't happen to build the ulogd daemon did you?

Last edited by knc1; 02-17-2013 at 12:42 PM.
knc1 is offline   Reply With Quote
Old 02-17-2013, 12:36 PM   #17
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
[root@kindle root]# cat /proc/version
Quote:
Linux version 2.6.31-rt11-lab126 (jenkins-official@jbuild02) (collect2: ld returned 1 exit status) #1 Wed Dec 12 19:58:30 PST 2012
[root@kindle root]# what
Quote:
Kindle Touch!
twobob is offline   Reply With Quote
Old 02-17-2013, 12:43 PM   #18
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,818
Karma: 6314522
Join Date: Feb 2012
Device: Too many.
Is jbuild01 on the K4?
knc1 is offline   Reply With Quote
Old 02-17-2013, 01:42 PM   #19
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
"Not Sure". will happily test should my grubby mits ever own one
twobob is offline   Reply With Quote
Old 02-17-2013, 05:33 PM   #20
baf
Addict
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 332
Karma: 1346560
Join Date: May 2012
Device: kt
Quote:
Originally Posted by knc1 View Post
@baf : You didn't happen to build the ulogd daemon did you?
You will find this package at the bottom of my xterm page. I have never used it before and now just played a bit. I included working config (with adjusted paths etc) in the package to start with.

Last edited by baf; 02-17-2013 at 05:38 PM.
baf is offline   Reply With Quote
Old 02-17-2013, 05:45 PM   #21
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,818
Karma: 6314522
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by baf View Post
You will find this package at the bottom of my xterm page. I have never used it before and now just played a bit. I included working config (with adjusted paths etc) in the package to start with.
I grabbed a copy, thanks.

That is the new v-2 ULOGD -
Not sure if the old v-1 flavor wouldn't do the job of just copying packets without all the extra bells and whistles.

Will play with both to get a better idea.
knc1 is offline   Reply With Quote
Old 02-17-2013, 06:06 PM   #22
baf
Addict
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 332
Karma: 1346560
Join Date: May 2012
Device: kt
Quote:
Originally Posted by knc1 View Post
That is the new v-2 ULOGD -
Not sure if the old v-1 flavor wouldn't do the job of just copying packets without all the extra bells and whistles.
For me simple LOG target is enough
baf is offline   Reply With Quote
Old 02-17-2013, 07:41 PM   #23
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,818
Karma: 6314522
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by baf View Post
For me simple LOG target is enough
I used to feed PSAD with ULOG target, back when I was on that project.

Now I want the entire packet to add specific rules for using parts of the Amazon network services while blocking others.

I.E: For the 'developer rule-set'.

For other uses, the LOG target is probably enough, will just have to do something about the place that syslog-ng is writing to (and where its configure file is at).

A neat challenge, what with the KUAL objective of never touching system image files.
Will probably end up with over-mounting that file or directory with something, maybe a tmpfs something. (then everything goes away on re-boot)

Last edited by knc1; 02-17-2013 at 07:44 PM.
knc1 is offline   Reply With Quote
Old 02-24-2013, 03:50 PM   #24
slantybard
my parent's oops...
slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.
 
Posts: 334
Karma: 1427200
Join Date: Feb 2009
Device: Vx->Handera->Clie-> Axim->505->650->KPW/Aura
Just in case there are some other users as unintelligent as I am.....

When I unpacked the bbb-1.0.0 zip it gave me a folder bbb-1.0.0 and I stupidly dragged that folder to the extensions folder (yes, I did read the instructions several times...). This give you the following screenshot.

Solution is to only drag the bbb folder, not the bbb-1.0.0 folder to the extensions folder. Just in case this comes up with anyone else.

Smart people can ignore everything I just wrote.
Attached Thumbnails
Click image for larger version

Name:	error.png
Views:	77
Size:	10.2 KB
ID:	101887  
slantybard is offline   Reply With Quote
Old 02-24-2013, 04:05 PM   #25
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,818
Karma: 6314522
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by slantybard View Post
Just in case there are some other users as unintelligent as I am.....

When I unpacked the bbb-1.0.0 zip it gave me a folder bbb-1.0.0 and I stupidly dragged that folder to the extensions folder (yes, I did read the instructions several times...). This give you the following screenshot.

Solution is to only drag the bbb folder, not the bbb-1.0.0 folder to the extensions folder. Just in case this comes up with anyone else.

Smart people can ignore everything I just wrote.
That is the common practice in the "real world" (outside of the hobby world) to always put the archive contents into a directory of the same name.

Next time - bbb-1.0.1 (or whatever) will unpack into its own directory name - making it possible to keep them separate on the system.

The practice also protects against: "tar-bombs" (google that if you have to).
knc1 is offline   Reply With Quote
Old 02-24-2013, 04:13 PM   #26
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Hint... it's not this

Attached Thumbnails
Click image for larger version

Name:	Selection_229.png
Views:	292
Size:	267.5 KB
ID:	101897  
twobob is offline   Reply With Quote
Old 02-24-2013, 05:20 PM   #27
DuckieTigger
Wizard
DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.
 
DuckieTigger's Avatar
 
Posts: 1,710
Karma: 30756068
Join Date: Dec 2011
Device: PW1, Galaxy S5, Galaxy Note 4, Nexus 7 (2013), Nexus 10
Quote:
Originally Posted by knc1 View Post
That is the common practice in the "real world" (outside of the hobby world) to always put the archive contents into a directory of the same name.

Next time - bbb-1.0.1 (or whatever) will unpack into its own directory name - making it possible to keep them separate on the system.

The practice also protects against: "tar-bombs" (google that if you have to).
It does not unless you explicitly say to extract it into its own folder. Both your zip and tar.gz extract not only one, but 2 directories: bbb and refs. See here for the tgz, the zip has same contents.
Code:
$ tar tf bbb-1.0.0.tar.gz
bbb/
bbb/menu.json
bbb/frags/
bbb/frags/fw-base.txt
bbb/bin/
bbb/bin/load-bbb.sh
bbb/bin/del-filter.sh
bbb/bin/report-cnts.sh
bbb/bin/load-factory.sh
bbb/config.xml
refs/
refs/LICENSE.txt
refs/amazon-net.txt
DuckieTigger is offline   Reply With Quote
Old 02-24-2013, 05:46 PM   #28
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,818
Karma: 6314522
Join Date: Feb 2012
Device: Too many.
Who among you can read?

Quote, from top post of the thread:
Quote:
There will be two directories created when you un-pack the archive: bbb and: refs.
The 'refs' directory does not have to be on the Kindle - keep it wherever you keep your reference materials.
Does that sentence need to be clarified?
knc1 is offline   Reply With Quote
Old 02-24-2013, 05:59 PM   #29
DuckieTigger
Wizard
DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.
 
DuckieTigger's Avatar
 
Posts: 1,710
Karma: 30756068
Join Date: Dec 2011
Device: PW1, Galaxy S5, Galaxy Note 4, Nexus 7 (2013), Nexus 10
Quote:
Originally Posted by knc1 View Post
Quote, from top post of the thread:

Does that sentence need to be clarified?
No it doesn't need to be clarified.
Quote:
Next time - bbb-1.0.1 (or whatever) will unpack into its own directory name
That one does not make sense. Why change all of the sudden and package the next version different from the first? If you so strongly believe it should have been done to start with, then maybe you should have.

There will be user-errors no matter how you package it.
DuckieTigger is offline   Reply With Quote
Old 02-24-2013, 06:17 PM   #30
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,818
Karma: 6314522
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by DuckieTigger View Post
There will be user-errors no matter how you package it.
I was only replying to the Poster's Comment:
Quote:
When I unpacked the bbb-1.0.0 zip it gave me a folder bbb-1.0.0 and I stupidly dragged that folder to the extensions folder (yes, I did read the instructions several times...). This give you the following screenshot.
If they want to do it "Their way" - then the next time it will come out different for them than it did this first time.
knc1 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KUAL: Kindle Unified Application Launcher (v 2.4) twobob Kindle Developer's Corner 1372 11-16-2014 05:39 AM
Tools A helpful list of Extensions for KUAL twobob Kindle Developer's Corner 94 11-15-2014 06:49 PM
Tools KUAL DateTime Button knc1 Kindle Developer's Corner 23 05-03-2014 09:52 PM
[KUAL] Button Def. Packages (SUPERSEDED) knc1 Kindle Developer's Corner 6 09-27-2013 08:56 PM
Tutorial HELP ME - with data for Big Brother Blocker (BBB) knc1 Kindle Developer's Corner 12 02-11-2013 09:58 PM


All times are GMT -4. The time now is 06:30 AM.


MobileRead.com is a privately owned, operated and funded community.