There is nothing illegal about drilling holes in your barrel, and nothing wrong with discussing it either.
It is a common practice with competition level air pistols, the theory being that it bleeds off the turbulent gasses while the projectile is still stabilized by the barrel. Unfortuneately, these holes will do the opposite of making your gun quieter....it'll make it louder. The "bang" is caused by gasses rapidly escaping from the barrel, and the gas is actully escaping earlier with the holes in place. Without the length of (sealed) barrel to allow the gasses to slow down, the report is louder. Same reason a short barreled gun is louder than a long one.
Now, if you want a legally quiet alternative:
CCI CB's.....29 gr. bullet at 750 fps, more than enough snot to dispatch everything up to a raccoon with head shots, and out of a long barreled rifle? Stupid quiet. Seriously stupid quiet. My daughters red-ryder BB gun makes more noise than a 26" barreled bolt action shooting CB's.