Bug#973481: ITP: please -- Please, a sudo clone with regex support

2024-07-17 Thread Ed Neville
Hi Blair,

On 2024-07-18 03:29+0800, Blair Noctis wrote:
> Hi, the package seems to have been in Debian for a while. This ITP 
> could probably be closed?

Yes, close is best, I should have raised it as 'pleaser'.

Thanks,
Ed



Bug#1039943: ITP: linescroll -- simple tool to watch logfile throughput

2023-06-29 Thread ed neville
Package: wnpp
Severity: wishlist
Owner: ed neville 
X-Debbugs-Cc: debian-de...@lists.debian.org, ed-deb...@s5h.net

* Package name: linescroll
  Version : 0.1.2
  Upstream Contact: Ed Neville 
* URL : https://www.usenix.org.uk/content/linescroll.html
* License : GPL
  Programming Lang: Rust
  Description : simple tool to watch logfile throughput

Monitor log files for activity and display results via graph or 
statistics.

Useful for live comparisson of server access. E.g. cached vs uncached 
web access. Results can easily be displayed in a format suitable for 
email reports.

In need of sponsorship.



Bug#1034051: ITP: ripcalc -- simple network calculation and lookup tool

2023-04-07 Thread ed neville
Package: wnpp
Severity: wishlist
Owner: ed neville 
X-Debbugs-Cc: debian-de...@lists.debian.org, ed-deb...@s5h.net

* Package name: ripcalc
  Version : 0.1.6
  Upstream Author : Ed Neville 
* URL : https://www.usenix.org.uk/content/ripcalc.html
* License : GPL
  Programming Lang: (Rust)
  Description : simple network calculation and lookup tool

Calculate or lookup network addresses, then print results in a variety 
of formats.

Various datacenter audit/CMDB tools store reports in CSV, which can then 
be used as a source to lookup from. Ripcalc allows the end user to 
specify which parts of the CSV to include in output.

This will be maintained in the Debian Rust team.



Bug#988071: unblock: rust-pleaser/0.4.1

2021-05-04 Thread Ed Neville
chrono",
  "getopts",
  "libc",
  "nix",
  "pam",
+ "rand",
  "regex",
  "rpassword",
  "syslog",
@@ -209,6 +170,53 @@
 ]
 
 [[package]]
+name = "ppv-lite86"
+version = "0.2.10"
+source = "registry+https://github.com/rust-lang/crates.io-index";
+checksum = "ac74c624d6b2d21f425f752262f42188365d7b8ff1aff74c82e45136510a4857"
+
+[[package]]
+name = "rand"
+version = "0.7.3"
+source = "registry+https://github.com/rust-lang/crates.io-index";
+checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"
+dependencies = [
+ "getrandom",
+ "libc",
+ "rand_chacha",
+ "rand_core",
+ "rand_hc",
+]
+
+[[package]]
+name = "rand_chacha"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index";
+checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402"
+dependencies = [
+ "ppv-lite86",
+ "rand_core",
+]
+
+[[package]]
+name = "rand_core"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index";
+checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"
+dependencies = [
+ "getrandom",
+]
+
+[[package]]
+name = "rand_hc"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index";
+checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c"
+dependencies = [
+ "rand_core",
+]
+
+[[package]]
 name = "regex"
 version = "1.4.3"
 source = "registry+https://github.com/rust-lang/crates.io-index";
@@ -237,16 +245,10 @@
 ]
 
 [[package]]
-name = "rustc-demangle"
-version = "0.1.18"
-source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "6e3bad0ee36814ca07d7968269dd4b7ec89ec2da10c4bb613928d3077083c232"
-
-[[package]]
 name = "syslog"
-version = "4.0.1"
+version = "5.0.0"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "a0641142b4081d3d44beffa4eefd7346a228cdf91ed70186db2ca2cef762d327"
+checksum = "9a5d8ef1b679c07976f3ee336a436453760c470f54b5e7237556728b8589515d"
 dependencies = [
  "error-chain",
  "libc",
@@ -270,7 +272,7 @@
 checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255"
 dependencies = [
  "libc",
- "wasi",
+ "wasi 0.10.0+wasi-snapshot-preview1",
  "winapi",
 ]
 
@@ -300,6 +302,18 @@
 ]
 
 [[package]]
+name = "version_check"
+version = "0.9.3"
+source = "registry+https://github.com/rust-lang/crates.io-index";
+checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe"
+
+[[package]]
+name = "wasi"
+version = "0.9.0+wasi-snapshot-preview1"
+source = "registry+https://github.com/rust-lang/crates.io-index";
+checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"
+
+[[package]]
 name = "wasi"
 version = "0.10.0+wasi-snapshot-preview1"
 source = "registry+https://github.com/rust-lang/crates.io-index";
diff -Nru rust-pleaser-0.3.25/Cargo.toml rust-pleaser-0.4.1/Cargo.toml
--- rust-pleaser-0.3.25/Cargo.toml	2021-03-10 21:45:38.0 +
+++ rust-pleaser-0.4.1/Cargo.toml	2021-04-25 15:33:06.0 +0100
@@ -13,7 +13,7 @@
 [package]
 edition = "2018"
 name = "pleaser"
-version = "0.3.25"
+version = "0.4.1"
 authors = ["ed neville "]
 description = "please, a polite regex-first sudo alternative"
 homepage = "https://www.usenix.org.uk/content/please.html";
@@ -38,6 +38,9 @@
 [dependencies.pam]
 version = "0.7"
 
+[dependencies.rand]
+version = "0.7"
+
 [dependencies.regex]
 version = "1.3"
 
@@ -45,7 +48,7 @@
 version = "5.0"
 
 [dependencies.syslog]
-version = "4.0"
+version = ">= 4.0"
 
 [dependencies.users]
 version = "0.10"
diff -Nru rust-pleaser-0.3.25/Cargo.toml.orig rust-pleaser-0.4.1/Cargo.toml.orig
--- rust-pleaser-0.3.25/Cargo.toml.orig	2021-03-10 21:44:26.0 +
+++ rust-pleaser-0.4.1/Cargo.toml.orig	2021-04-25 15:25:19.0 +0100
@@ -1,6 +1,6 @@
 [package]
 name = "pleaser"
-version = "0.3.25"
+version = "0.4.1"
 authors = ["ed neville "]
 edition = "2018"
 description = "please, a polite regex-first sudo alternative"
@@ -20,5 +20,7 @@
 pam = "0.7"
 users = "0.10"
 rpassword = "5.0"
-syslog= "4.0"
+syslog= "

Bug#945366: sudoers permits arguments beyond what is normally expected

2021-02-25 Thread Ed Neville
On 2021-02-25 17:43+0100, Marc Haber wrote:
> ...
> I am removing the patch tag since Debian is not going to take this 
> patch if upstream doesn't. The functionality will be included in 
> Debian when upstream makes a release with the functionality included.
> 
> The patch has been forwarded to upstream as
> https://bugzilla.sudo.ws/show_bug.cgi?id=919 .

Thanks, I'll keep an eye on it, but remain doubtful. Whilst waiting 
Debian has rust-pleaser which covers what is needed in fewer LOC and I 
am a very happy bunny as a result.

Ed



Bug#931134: procps: Please include 'older' than option

2019-06-26 Thread ed neville
Package: procps
Version: 2:3.3.12-3+deb9u1
Severity: wishlist

Dear Maintainer,

pgrep does not currently include an option to limit selection to tasks
which are older than N number of seconds. The work around requires
numeric work in shell which is not desirable.

Pull request:

  https://gitlab.com/procps-ng/procps/merge_requests/79

It would be great if this could be included in debian and RH where I
currently have work arounds, but this code change would be more reliable
than my shell code.

Thanks in advance,
Ed

-- System Information:
Debian Release: 9.8
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-8-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C 
(charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages procps depends on:
ii  init-system-helpers  1.48
ii  libc62.24-11+deb9u4
ii  libncurses5  6.0+20161126-1+deb9u2
ii  libncursesw5 6.0+20161126-1+deb9u2
ii  libprocps6   2:3.3.12-3+deb9u1
ii  libtinfo56.0+20161126-1+deb9u2
ii  lsb-base 9.20161125

Versions of packages procps recommends:
ii  psmisc  22.21-2.1+b2

procps suggests no packages.

-- no debconf information



Bug#751892: udev: external media belong to disk group

2014-11-20 Thread ed neville
On Wed, Nov 19, 2014 at 07:33:56AM +0300, Dmitry Alexandrov wrote:
> >Use pmount?
> 
> ‘pmount(1)’ does not have an ability to label filesystems (at least
> manpage says nothing about that).

Just to add, what solution/work around would there be for eject?

Having removable media automatically group owned floppy was a huge
benefit. I have never encountered an issue with it, that's not to say
there isn't one, just I can't picture any problems with it.

-- 
Best regards,
Ed http://www.s5h.net/


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#770385: udev no longer provides permissions rule

2014-11-20 Thread Ed Neville
Package: udev
Version: 215-5+b1
Severity: important
Tags: patch

Dear Maintainer,

Noticed that when plugging a USB mass storage device in that the
permissions on the block device were set incorrectly as:

  brw-rw 1 root disk 8, 16 Nov 20 10:20 /dev/sdb
  brw-rw 1 root disk 8, 17 Nov 20 10:20 /dev/sdb1

The expected ownership should have been set as

  brw-rw 1 root floppy 8, 16 Nov 20 10:54 /dev/sdb
  brw-rw 1 root floppy 8, 17 Nov 20 10:54 /dev/sdb1

The solution was to replace /lib/udev/rules.d/91-permissions.rules from
an old host and run udevadm control --reload-rules, reinserting the USB
device then has the desired ownership.

A patch file is attached containing a copy of 91-permissions.rules from
lenny, though getting the latest copy may be preferred.

It appears that this file was removed as part of some systemd work,
http://metadata.ftp-master.debian.org/changelogs//main/s/systemd/systemd_215-5_changelog
(26 Apr 2014).

-- Package-specific info:

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages udev depends on:
ii  adduser3.113+nmu3
ii  debconf [debconf-2.0]  1.5.53
ii  libacl12.2.52-2
ii  libblkid1  2.25.2-2
ii  libc6  2.19-13
ii  libkmod2   18-3
ii  libselinux12.3-2
ii  libudev1   215-5+b1
ii  lsb-base   4.1+Debian13+nmu1
ii  procps 2:3.3.9-8
ii  util-linux 2.25.2-2

udev recommends no packages.

udev suggests no packages.

-- debconf information:
  udev/reboot_needed:
  udev/new_kernel_needed: false
  udev/title/upgrade:
  udev/sysfs_deprecated_incompatibility:

-- 
Best regards,
Ed http://www.s5h.net/

diff -Naur lib.old/udev/rules.d/91-permissions.rules lib/udev/rules.d/91-permissions.rules
--- lib.old/udev/rules.d/91-permissions.rules	1970-01-01 01:00:00.0 +0100
+++ lib/udev/rules.d/91-permissions.rules	2014-11-20 20:47:34.160828017 +
@@ -0,0 +1,126 @@
+ACTION=="remove", GOTO="permissions_end"
+
+# default permissions for block devices
+SUBSYSTEM=="block",GROUP="disk"
+SUBSYSTEM=="block", ATTRS{removable}=="1",	GROUP="floppy"
+# the aacraid driver is broken and reports the disks as removable (see #404927)
+SUBSYSTEM=="block", DRIVERS=="aacraid",		GROUP="disk"
+# all block devices on these buses are "removable"
+SUBSYSTEM=="block", SUBSYSTEMS=="usb|ieee1394|mmc|pcmcia", GROUP="floppy"
+
+KERNEL=="cbm",	GROUP="floppy"
+
+# IDE devices
+ENV{ID_CDROM}=="?*",GROUP="cdrom"
+KERNEL=="ht[0-9]*", GROUP="tape"
+KERNEL=="nht[0-9]*", GROUP="tape"
+
+# SCSI devices
+SUBSYSTEM=="scsi_generic|scsi_tape", \
+SUBSYSTEMS=="scsi", ATTRS{type}=="1|8",		GROUP="tape"
+SUBSYSTEM=="scsi_generic", \
+SUBSYSTEMS=="scsi", ATTRS{type}=="4|5",		GROUP="cdrom"
+
+# USB devices
+KERNEL=="legousbtower*",	MODE="0666"
+KERNEL=="lp[0-9]*", SUBSYSTEMS=="usb",		GROUP="lp"
+# hplip and cups 1.4+ use raw USB devices, so permissions should be similar to
+# the ones from the old usblp kernel module
+SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", \
+	ENV{ID_USB_INTERFACES}=="", IMPORT{builtin}="usb_id"
+SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", \
+	ENV{ID_USB_INTERFACES}=="*:0701??:*",	GROUP="lp"
+
+# usbfs-like devices
+SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", \
+MODE="0664"
+
+# serial devices
+SUBSYSTEM=="tty",GROUP="dialout"
+SUBSYSTEM=="capi",GROUP="dialout"
+SUBSYSTEM=="slamr",GROUP="dialout"
+SUBSYSTEM=="zaptel",GROUP="dialout"
+KERNEL=="mISDNtimer",GROUP="dialout"
+KERNEL=="mwave",GROUP="dialout"
+KERNEL=="hvc*|hvsi*",GROUP="dialout"
+
+# vc devices (all members of the tty subsystem)
+KERNEL=="ptmx",			MODE="0666",	GROUP="root"
+KERNEL=="console",		MODE="0600",	GROUP="root"
+KERNEL=="tty",			MODE="0666",	GROUP="root"
+KERNEL=="tty[0-9]*",GROUP="root"
+KERNEL=="pty*",			MODE="0666",	GROUP="tty"
+
+# video devices
+SUBSYSTEM=="video4linux",			GROUP="video"
+SUBSYSTEM=="drm",GROUP="video"
+SUBSYSTEM=="dvb",GROUP="video"
+SUBSYSTEM=="em8300",GROUP="video"
+SUBSYSTEM=="graphics",GROUP="video"
+SUBSYSTEM=="nvidia",GROUP="video"
+
+# misc devices
+KERNEL=="random",		MODE="0666"
+KERNEL=="urandom",		MODE="0666"
+KERNEL=="mem",			MODE="0640",	GROUP="kmem"
+KERNEL=="kmem",			MODE="0640",	GROUP="kmem"
+KERNEL=="port",			MODE="0640",	GROUP="kmem"
+KERNEL=="nvram",		MODE="0640",	GROUP="kmem"
+KERNEL=="full",			MODE="0666"
+KERNEL=="null",			MODE="0666"
+KERNEL=="zero",			MODE="0666"
+KERNEL=="inotify",		MODE="0666"
+KERNEL=="sonypi",		MODE="0666"
+KERNEL=="cpu[0-9]*",		MODE="0444"
+KERNEL=="agpgart",GROUP="video"
+KERNEL=="pmu",	GROUP="video"
+KERNEL=="kqemu",		MODE="0666"
+KERNEL=="tun",			MODE="0666",	OPTIONS+="static_node=net/tun"
+KER