From 24555a096e9594b97f2e70e66ebd40b4e447f401 Mon Sep 17 00:00:00 2001 From: hackbard Date: Tue, 3 Jan 2006 02:39:37 +0000 Subject: [PATCH] lirc hotfix, createdb dir added to 00-dirtree --- doc/CHANGELOG | 2 + packages/base/00-dirtree/00-dirtree | 2 + packages/hackbard/lirc/kernel2.6.14.patch | 86 +++++++++++++++++++++++ packages/hackbard/lirc/lirc | 4 +- 4 files changed, 92 insertions(+), 2 deletions(-) create mode 100644 packages/hackbard/lirc/kernel2.6.14.patch diff --git a/doc/CHANGELOG b/doc/CHANGELOG index 72df4f2..fb33cb5 100644 --- a/doc/CHANGELOG +++ b/doc/CHANGELOG @@ -1,5 +1,7 @@ *) 2006-01-03 +- added /var/lib/create for createdb to work to 00-dirtree +- lirc bugfixes (temporally) - updated linux kernel - added packages: devmapper, dmraid, mdadm, popt, cryptsetup, hashalot diff --git a/packages/base/00-dirtree/00-dirtree b/packages/base/00-dirtree/00-dirtree index b651afc..0220d67 100644 --- a/packages/base/00-dirtree/00-dirtree +++ b/packages/base/00-dirtree/00-dirtree @@ -161,6 +161,8 @@ mkdir -p $root/var/cache mkdir -p $root/var/games # Create directory var/lib ... mkdir -p $root/var/lib +# Create directory var/lib/locate ... +mkdir -p $root/var/lib/locate # Create directory var/lock ... mkdir -p $root/var/lock # Create directory var/log ... diff --git a/packages/hackbard/lirc/kernel2.6.14.patch b/packages/hackbard/lirc/kernel2.6.14.patch new file mode 100644 index 0000000..4a11d7f --- /dev/null +++ b/packages/hackbard/lirc/kernel2.6.14.patch @@ -0,0 +1,86 @@ +--- lirc-0.7.2.orig/drivers/lirc_cmdir/lirc_cmdir.c 2005-07-10 10:34:13.000000000 +0200 ++++ lirc-0.7.2/drivers/lirc_cmdir/lirc_cmdir.c 2005-09-20 16:32:35.000000000 +0200 +@@ -352,7 +352,7 @@ + int cmdir_cnt =0; + + if(n%sizeof(lirc_t)) return(-EINVAL); +- retval=verify_area(VERIFY_READ,buf,n); ++ retval=access_ok(VERIFY_READ,buf,n) ? 0 : -EFAULT; + if(retval) return(retval); + + count=n/sizeof(lirc_t); +--- lirc-0.7.2.orig/drivers/lirc_it87/lirc_it87.c 2005-06-05 17:43:28.000000000 +0200 ++++ lirc-0.7.2/drivers/lirc_it87/lirc_it87.c 2005-09-20 16:35:00.000000000 +0200 +@@ -223,8 +223,8 @@ + break; + } + +- retval=verify_area(VERIFY_WRITE,(void *) buf+n, +- sizeof(lirc_t)); ++ retval=access_ok(VERIFY_WRITE,(void *) buf+n, ++ sizeof(lirc_t)) ? 0 : -EFAULT; + if (retval) + { + return retval; +@@ -252,7 +252,7 @@ + + if(n%sizeof(lirc_t) || (n/sizeof(lirc_t)) > WBUF_LEN) + return(-EINVAL); +- retval = verify_area(VERIFY_READ, buf, n); ++ retval = access_ok(VERIFY_READ, buf, n) ? 0 : -EFAULT; + if (retval) + return retval; + copy_from_user(tx_buf, buf, n); +--- lirc-0.7.2.orig/drivers/lirc_parallel/lirc_parallel.c 2005-04-23 13:40:01.000000000 +0200 ++++ lirc-0.7.2/drivers/lirc_parallel/lirc_parallel.c 2005-09-20 16:36:12.000000000 +0200 +@@ -400,7 +400,7 @@ + + if(n%sizeof(lirc_t)) return(-EINVAL); + +- result=verify_area(VERIFY_WRITE,buf,n); ++ result=access_ok(VERIFY_WRITE,buf,n) ? 0 : -EFAULT; + if(result) return(result); + + add_wait_queue(&lirc_wait,&wait); +@@ -449,7 +449,7 @@ + return(-EBUSY); + } + if(n%sizeof(lirc_t)) return(-EINVAL); +- result=verify_area(VERIFY_READ,buf,n); ++ result=access_ok(VERIFY_READ,buf,n) ? 0 : -EFAULT + if(result) return(result); + + count=n/sizeof(lirc_t); +--- lirc-0.7.2.orig/drivers/lirc_serial/lirc_serial.c 2005-04-23 13:40:01.000000000 +0200 ++++ lirc-0.7.2/drivers/lirc_serial/lirc_serial.c 2005-09-20 16:36:41.000000000 +0200 +@@ -923,7 +923,7 @@ + } + + if(n%sizeof(lirc_t)) return(-EINVAL); +- retval=verify_area(VERIFY_READ,buf,n); ++ retval=access_ok(VERIFY_READ,buf,n) ? 0 : -EFAULT; + if(retval) return(retval); + count=n/sizeof(lirc_t); + if(count>WBUF_LEN || count%2==0) return(-EINVAL); +--- lirc-0.7.2.orig/drivers/lirc_sir/lirc_sir.c 2005-04-23 13:40:01.000000000 +0200 ++++ lirc-0.7.2/drivers/lirc_sir/lirc_sir.c 2005-09-20 16:37:21.000000000 +0200 +@@ -314,8 +314,8 @@ + { + if(rx_head!=rx_tail) + { +- retval=verify_area(VERIFY_WRITE, +- (void *) buf+n,sizeof(lirc_t)); ++ retval=access_ok(VERIFY_WRITE, ++ (void *) buf+n,sizeof(lirc_t)) ? 0 : -EFAULT; + if (retval) + { + return retval; +@@ -356,7 +356,7 @@ + + if(n%sizeof(lirc_t) || (n/sizeof(lirc_t)) > WBUF_LEN) + return(-EINVAL); +- retval = verify_area(VERIFY_READ, buf, n); ++ retval = access_ok(VERIFY_READ, buf, n) ? 0 : -EFAULT; + if (retval) + return retval; + copy_from_user(tx_buf, buf, n); diff --git a/packages/hackbard/lirc/lirc b/packages/hackbard/lirc/lirc index 7cc147a..d9b7aad 100644 --- a/packages/hackbard/lirc/lirc +++ b/packages/hackbard/lirc/lirc @@ -2,9 +2,9 @@ # # author: hackbard@hackdaworld.dyndns.org # -# [V] 0.7.1 +# [V] 0.7.2 # [S] 3-4 -# [D] lirc-0.7.1.tar.bz2 http://mesh.dl.sourceforge.net/sourceforge/lirc/ +# [D] lirc-0.7.2.tar.bz2 http://mesh.dl.sourceforge.net/sourceforge/lirc/ # specify driver, port, irq driver="serial" -- 2.39.2